0

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?

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
dbrasco
  • 1,183
  • 1
  • 12
  • 22

0 Answers0