Create a tag from a particular commit git / github

Image credit: Github website
  1. Create a tag from a particular commit and give some message to the tag

git tag -a v1.0.0 fg3ab1b -m "Tagged the first commit with v1.0.0"

  1. Verify that the tag is created and all the previous tags

git tag -n

  1. push the tag to remote

git push origin v1.0.0

Ravindra Shinde
Ravindra Shinde
Research Scientist

I am a theoretical and computational condensed matter physicist and quantum chemist. I have around 10 years of research experience, with 6 years in scientific code development. I have authored 16 research articles, 1 book, and peer-reviewed 25 manuscripts.