Squashing a pull request
I was asked to squash all of the commits of a recent pull request (PR).
- The branch I sent in a PR for is called
pre-processing
. - Make sure to grab any new commits to the repository you are sending in the PR to.
- Interactive rebase.
- Change 'pick' to 'squash' for all commits except the first.
- Save and exit out of your editor.
- Next, git will prompt you for a commit message.
- Save and exit editor.
- Force a git push.
- Done. Your PR has been squashed to a single commit.
$ git branch -a master * pre-processing remotes/origin/HEAD -> origin/master remotes/origin/master remotes/origin/pre-processing
$ git remote add upstream git@github.com:yeoman/generator-chrome-extension.git $ git fetch upstream master
$ git rebase -i upstream/master # or just 'git rebase -i master'




Add support for 'grunt watch'.
$ git push origin pre-processing -f
- Pushed on 01/08/2014 by Christian