git extension to squash merge pull requests into master
This is a git extension that squash merges a pull request into the master branch. The process is as follows:
git promote <PR_NUM>
git pull origin pull/$PR_NUM/head:pullrequest-$PR_NUM
git checkout pullrequest-$PR_NUM
git pull origin master
git checkout master
git merge --squash pullrequest-$PR_NUM
git commit
git push origin master
git branch -D pullrequest-$PR_NUM
You can install git-promote using npm install.
npm install -g git-promote