Last active
August 29, 2015 14:06
-
-
Save pixelistik/6b9b71517ad378288550 to your computer and use it in GitHub Desktop.
Release versioning with git tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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