https://github.com/jhurliman/git-promote
git extension to squash merge pull requests into master
https://github.com/jhurliman/git-promote
Last synced: 2 months ago
JSON representation
git extension to squash merge pull requests into master
- Host: GitHub
- URL: https://github.com/jhurliman/git-promote
- Owner: jhurliman
- License: mit
- Created: 2015-09-14T08:11:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-14T08:37:27.000Z (almost 11 years ago)
- Last Synced: 2025-10-03T23:53:15.057Z (9 months ago)
- Language: Shell
- Size: 137 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-promote
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:
```sh
git promote
```
1. `git pull origin pull/$PR_NUM/head:pullrequest-$PR_NUM`
2. `git checkout pullrequest-$PR_NUM`
3. `git pull origin master`
4. `git checkout master`
5. `git merge --squash pullrequest-$PR_NUM`
6. `git commit`
7. `git push origin master`
8. `git branch -D pullrequest-$PR_NUM`
## Installation
You can install git-promote using npm install.
```sh
npm install -g git-promote
```
## License
[The MIT License (MIT)](http://opensource.org/licenses/mit-license.php)