Skip to content

Instantly share code, notes, and snippets.

@dotspencer
Last active May 4, 2018 21:36
Show Gist options
  • Save dotspencer/9e2611ce64f8e20a3dcda58d165a0fc5 to your computer and use it in GitHub Desktop.
Save dotspencer/9e2611ce64f8e20a3dcda58d165a0fc5 to your computer and use it in GitHub Desktop.
Git tagging walkthrough

So to start you have a new feature implemented on a branch.

After code review and QA testing, you merge the branch into master.

# To create the release tag, checkout the master branch
git checkout master

git pull
git fetch --all

# Shows latest tagged version
git tag | tail -1
# [email protected]

# Create the tag (like a branch but can't be updated)
# Make sure to increment the version number by hand
git tag [email protected]

# Checkout the tag
git checkout [email protected]

# Push the tagged release
git push origin [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment