Skip to content

Instantly share code, notes, and snippets.

@moret
Created February 25, 2013 18:52
Show Gist options
  • Save moret/5032232 to your computer and use it in GitHub Desktop.
Save moret/5032232 to your computer and use it in GitHub Desktop.
Merge some branch, commits it all at master as a single commit
# Updates if needed
git checkout master
git fetch
git pull
# Merge and reset
git merge whatever_branch
git reset origin/master
# Commits everything as a single commit
git add .
git commit -m 'your single commit description here'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment