How to get back to the latest commit after checking out a previous commit?..

Posted by Leo Alekseyev on Stack Overflow See other posts from Stack Overflow or by Leo Alekseyev
Published on 2010-03-11T17:42:58Z Indexed on 2010/03/11 17:49 UTC
Read the original article Hit count: 198

Filed under:

I sometimes check out some previous version of the code to examine or test. I have seen instructions on what to do if I wish to modify previous commits -- but suppose I make no changes. After I've done e.g. git checkout HEAD^, how do I get back to the tip of the branch?.. git log no longer shows me the SHA of the latest commit.

© Stack Overflow or respective owner

Related posts about git