git checkout - Git jumping back to history after adding and removing files has different behaviour? -


i'm new comer git. found interesting.

say if add file , commit. after checkout previous version, file doesn't exist expected. (since in last commit, hadn't been created)

however, if remove file , commit. after jump previous commit, file doesn't exist well, surprises me.

why there're different behaviours?

thanks

edit: reply. jumped previous commits git log showing hash. , git checkout 'hash'.


Comments

Popular posts from this blog

c++ - rosrun via ssh doesnt start a node properly -

android - questions about switching from C2DM to GCM -

How to resolve Delphi error: Incompatible types: 'PWideChar' and 'Pointer' -