6

I am thinking about using git describe to generate automated version numbers. As suggest here.

My question is that if I get o/p of git describe as v2.0-64-g835c907, how can I checkout that particular revision number using git in future?

Community
  • 1
  • 1
Vivek Goel
  • 21,134
  • 28
  • 101
  • 178

2 Answers2

7

You can just do

git checkout v2.0-64-g835c907

The output from git describe can be used as a reference to a commit itself

D-Rock
  • 2,576
  • 1
  • 20
  • 25
3

If I understand correctly this may be what you want:

git checkout `git describe`
iltempo
  • 15,316
  • 8
  • 57
  • 71