Search code examples
gitgit-checkoutgit-describe

GIT checking out code from output of "git describe"


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?


Solution

  • If I understand correctly this may be what you want:

    git checkout `git describe`