I just want to know what my current revision number is.
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.
What do you mean by "version number"? It is quite common to tag a commit with a version number and then use
to identify the current HEAD w.r.t. any tags. If you mean you want to know the hash of the current HEAD, you probably want:
or for the short revision hash:
It is often sufficient to do:
but this is not reliable as the ref may be packed.