Skip to content

Instantly share code, notes, and snippets.

@samdark
Last active October 22, 2015 11:49
Show Gist options
  • Save samdark/79b5ca02a698b5a43fdc to your computer and use it in GitHub Desktop.
Save samdark/79b5ca02a698b5a43fdc to your computer and use it in GitHub Desktop.
sqash-merge pull request
git checkout -b local-branch-name master
git pull https://github.com/username/repo.git remote-branch-name
git --no-pager show -s --format='%an <%ae>' FETCH_HEAD
git merge --squash local-branch-name
git commit -am 'commit message' --author="author name <[email protected]>"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment