In #git, you said you unintentionally added a directory that should have been ignored, so run
git rm --cached -r directory-name
to recursively remove the tree rooted at directory-name from the index.
directory-name
Don't forget to update .gitignore!
.gitignore
You can just use the command:
git reset
Make sure you remember to put the s in --global core.excludesfile .gitignore.txt
s
--global core.excludesfile .gitignore.txt
excludesfile vs excludefile
excludesfile
excludefile
Maybe this will save someone else the hour I lost...