Skip to content

Instantly share code, notes, and snippets.

@p-jackson
Created December 22, 2013 08:24
Show Gist options
  • Save p-jackson/8079745 to your computer and use it in GitHub Desktop.
Save p-jackson/8079745 to your computer and use it in GitHub Desktop.
Closing off a feature branch
git checkout <feature-branch>
git pull
git checkout <release-branch>
git pull
git merge --no-ff <feature-branch>
git push
git tag -a branch-<feature-branch> -m "Merge <feature-branch> into <release-branch>"
git push origin branch-<feature-branch>
git branch -d <feature-branch>
git push origin :<feature-branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment