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
Post a Comment