I have a file that was deleted in a previous commit so I did the following:
git checkout e441c9b~1 <myfile>
Then the file was back in the staging area. Out of curiosity I did
git reset HEAD <myfile>
and the file disappeared, where I would have expected that the file would just stay in my repo untracked.
Actually if I go to the folder the file is there, but git status
says nothing about it, I am confused. Any ideas what I am missing?