How to checkout a specific version of git repository

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.



Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

Leave a Reply