I was trying to make my .gitingore work (Link to the question :) ).
I have just done
git rm . -r --cached
and now I have a whole list of deleted files when I enter:
git status -s
Is this normal? Can i safetly commit all my changes?
Or maybe there is a way to undo this command?
PS: I was trying to understand what this command do but i've only found this: http://brianloomis.wordpress.com/2009/08/10/git-rm-r-cached/ And it's not so clear to me.
PS 2: OK :) To save my skin I've made a reset:
git reset HEAD *
The DELETED files went bye bye :) There are no longer visible in git status -s . But still is it safe to do the command:
git rm . -r --cached and then add and commit it?