Unstage

bash git reset HEAD <file>

bash git checkout -- <file>

sh git rm '*.txt' git rm -r <dirname>

sh git rm <filename> --cache