Skip to content

Instantly share code, notes, and snippets.

@jmervine
Last active February 10, 2016 17:32
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 jmervine/d015555a276bde31ca9d to your computer and use it in GitHub Desktop.
Save jmervine/d015555a276bde31ca9d to your computer and use it in GitHub Desktop.
# assuming your tag is '1.0.1'
# ensure latest code is local
git fetch --all --tag
# create branch off tag
git checkout -b branch-off-1.0.1 1.0.1
# your current branch should now be 'branch-off-1.0.1'
# ensure branch matches tag [optional]
git diff 1.0.1
# now make your changes and do all the fun stuff
# tag your branch for release with next tag in line (e.g. 1.0.2)
git tag 1.0.2
# push tags
git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment