git - Why am I committing a bunch of desktop.ini files despite .gitignore? -
i don't understand happened. did
git add . git commit and see list of bunch of desktop.ini files committed.
(i don't understand why previous commits did not of them, , might have changed, that's aside)
so, undid commit
git reset --soft head~1 added line .gitignore:
./**/desktop.ini and did
git add . git commit -m "test" still adding bunch of desktop.ini. doing wrong?
your git reset --soft did not reset index: canceled commit, files still in index (i.e. "added"). so, when committed again, got same commit same files.
you wanted to git reset --mixed (or omit --mixed default anyway) reset index (but not working tree).
Comments
Post a Comment