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 am currently working as a researcher at the University of Twente, the Netherlands. I am also the founder of The Science Dev.



Next
Previous