Skip to content

Instantly share code, notes, and snippets.

@NicolasRitouet
Last active December 25, 2015 14:29
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 NicolasRitouet/6991139 to your computer and use it in GitHub Desktop.
Save NicolasRitouet/6991139 to your computer and use it in GitHub Desktop.
Make a branch from a tag
tag_to_branch=2.0.4.1
new_branch=2.0.4
git checkout origin master
git fetch origin
git branch $new_branch tags/$tag_to_branch #or git checkout -b $new_branch $tag_to_branch
git checkout $new_branch
git push origin $new_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment