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# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -