I am new to GIT. Last week I checked out my code to a tag. I forgot the tag name and apparently have some issue with code, so I want to know which tag I checked out from. How can I find that?
Share
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.
You can use the
git describecommand to find the “closest” tag associated with your current commit:For example, in a sample repository this gives me:
This means I am at commit
g25a38be, which is two commits beyond the tagtesttag.