Skip to content

Instantly share code, notes, and snippets.

@mazfreelance
Last active September 26, 2023 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazfreelance/28e5d4310b0d40540e6d95f59875b33e to your computer and use it in GitHub Desktop.
Save mazfreelance/28e5d4310b0d40540e6d95f59875b33e to your computer and use it in GitHub Desktop.
git version

first commit with tag

  • <tag> - eg: v0.0.1
$ git add.
$ git commit -m "Initial release"
$ git tag <tag> 
$ git push origin master --tags

update commit with tag

  • add new tag with specific commit
  • $ git tag -a -m "Your message here"
$ git tag -a v1.0 7cceb02 -m "Your message here"
  • update git repo
  • git push orign
$ git push origin v1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment