https://github.com/z20240/rebase-branches
https://github.com/z20240/rebase-branches
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/z20240/rebase-branches
- Owner: z20240
- Created: 2020-02-18T09:00:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T20:13:39.000Z (over 3 years ago)
- Last Synced: 2025-10-11T09:06:25.252Z (9 months ago)
- Language: JavaScript
- Size: 139 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# rebase-branches

This is a tool for people who want to rebase specify branch (default master) automatically to all other branches.
## Getting started
### Install by npm
```
npm i rebase-branches -g
```
OR
### Install by clone git
```
$ git clone https://github.com/z20240/rebase-branches.git
$ cd rebase-branches
$ sudo npm install -g
```
### How to use?
In your project which has the `git` using the command line
```
$ rebase-branches
```
It will automatically rebase master branch for each branch.
### Args
- **-h, --help** : show usage.
- **-o, --only** : only some branches need to rebase master.
- **-e, --except** : branches rebase master except specified branches.
- **--set-default [branch name]** : set default rebase branch.
- **--show-default** : show current default rebase branch.
- **--set-except**: You can set default except target branches.
- **--show-except**: You can show default except target branches.
- **--show-all**: You can show all config by using this command.
- **--remove-except**: You can remove default except target branches.
**Hint: When occur conflict**
Please **resolve** the conflict yourself, and retry the `rebase-branches` again.
That's it~
Enjoy your git rebase! :)