Skip to content

Instantly share code, notes, and snippets.

@pixelistik
Last active August 29, 2015 14:06
Show Gist options
  • Save pixelistik/6b9b71517ad378288550 to your computer and use it in GitHub Desktop.
Save pixelistik/6b9b71517ad378288550 to your computer and use it in GitHub Desktop.
Release versioning with git tag
# Go to master
git checkout master
# Merge the new stuff
git merge develop
# This is our release, so tag it
git tag "$VERSION" -a -m "Release $VERSION"
# Make the updated master branch public, including the fresh tag
git push --tags origin master
# Now go back to dev
git checkout dev
# We merge back master into dev, including the tag object, so
# the new version tag is visible there
git merge master
# Make the updated dev branch public, including the fresh tag
git push --tags origin dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment