For example, in a git worktree of Linux Kernel.
$ git checkout v2.6.6
$ git checkout v3.3
How to find the last head name or HASHID in current branch v3.3? In the example above, it should get v2.6.6 or the HASHID for v2.6.6.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Every time you move the head git records it in the
reflog.If you were to run this command after the commands in your question, the old commit hash would be on the second line down and will reference the tag you were moving to.
For example