Created
February 25, 2013 18:52
-
-
Save moret/5032232 to your computer and use it in GitHub Desktop.
Merge some branch, commits it all at master as a single commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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