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

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -