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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -