Skip to content

Instantly share code, notes, and snippets.

@signalpillar
Created May 8, 2014 10:33
Show Gist options
  • Save signalpillar/1354e3ec03735cfdad03 to your computer and use it in GitHub Desktop.
Save signalpillar/1354e3ec03735cfdad03 to your computer and use it in GitHub Desktop.
merge as one commit
# update develop
git fetch origin
git co develop
git rebase origin/develop
# be sure that you don't have conflicts
git co <feature-branch>
git merge develop
# merge into develop
git co develop
git merge --squash <feature-branch>
git ci -m "RM-XXX: <short descr>
<long here>
"
git push origin develop
# remove local branch
git branch -D <feature-branch>
# remove remote branch, if exists
git push origin :<feature-branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment