git extension to squash merge pull requests into master
npm install git-promoteThis is a git extension that squash merges a pull request into the master
branch. The process is as follows:
``sh`
git promote
1. git pull origin pull/$PR_NUM/head:pullrequest-$PR_NUMgit checkout pullrequest-$PR_NUM
2. git pull origin master
3. git checkout master
4. git merge --squash pullrequest-$PR_NUM
5. git commit
6. git push origin master
7. git branch -D pullrequest-$PR_NUM
8.
You can install git-promote using npm install.
`sh``
npm install -g git-promote