How to checkout a specific version of git repository

Spread the love

Checkout Specific git revision

To view the commit history of the current project:

Sample output :

You will get the output like above, There is one unique identifier here that is hash, In above case it is
So you can use this hash to go back to that version in any public repository. if you want to go to a specific git version use following command.

Check out specific git revision or version :

Sample output :

now git status will give you are using detached version. Something like below.


Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply