Created
May 7, 2012 20:01
-
-
Save sindresorhus/2630026 to your computer and use it in GitHub Desktop.
Git merge squash author commit and push - cheatsheet
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
git checkout master | |
git checkout -b bug123 | |
git pull http://repourl.git branch | |
git log | grep "Author" | head -1 # get the author | |
git checkout master | |
git merge --squash bug123 | |
git commit -a --author="Author" --message="Close #1: Title. Fixes #666" | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More generic version for GitHub PRs: https://gist.github.com/oleg-nenashev/ec7dea01dcf272e9b891