Skip to content

Instantly share code, notes, and snippets.

@yaza-putu
Last active December 4, 2020 02:13
Show Gist options
  • Save yaza-putu/4cd2403baa937fa22fbcbf51b8157aef to your computer and use it in GitHub Desktop.
Save yaza-putu/4cd2403baa937fa22fbcbf51b8157aef to your computer and use it in GitHub Desktop.
git push with tag Semantic Versioning

Manual Git Tag Semantic Versioning

v1.0.0 Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards compatible manner, and PATCH version when you make backwards compatible bug fixes. Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

list tag

git tag -l

stage

git add .

commit

git commit -m "message"

get short id commit

git rev-parse --short HEAD

create tag

git tag -a versioning -m "message" 
// create tag with id commit
git tag -a versioning idcommit -m "message"

push new commit to tag

git push --tag origin branch

create release tag (Git Hub)

click tag => click menu create release tag example create release tag in github

create release tag (git lab)

click tag => edit release notes example create release tag in gitlab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment