https://github.com/ipanardian/crbranch
A simple command line app to help you create git branch more faster
https://github.com/ipanardian/crbranch
automation branch command-line-tool git php
Last synced: about 1 month ago
JSON representation
A simple command line app to help you create git branch more faster
- Host: GitHub
- URL: https://github.com/ipanardian/crbranch
- Owner: ipanardian
- License: mit
- Created: 2016-08-19T03:07:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-05-18T05:14:22.000Z (about 7 years ago)
- Last Synced: 2025-08-09T21:34:40.584Z (11 months ago)
- Topics: automation, branch, command-line-tool, git, php
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crBranch
[](https://github.com/ipanardian/crbranch/issues)
[]()
[](https://raw.githubusercontent.com/ipanardian/crbranch/master/LICENSE)
*this project is not under maintenance anymore. Please use GoBranch instead*
[https://github.com/ipanardian/GoBranch](https://github.com/ipanardian/GoBranch)
A simple command line app to help you create git branch more faster. You just copy a title from project management app like Asana or whatever you use. Paste it on command line along with specific argument then enter. The crbranch will checkout to specific base branch and create new branch for you.
## How to use
```
$ crbranch -f
Type: API Seating Chart
Switched to branch 'development'
Your branch is up-to-date with 'origin/development'.
Switched to a new branch 'feature_api_seating_chart'
$ crbranch -h
Type: ATM expired payment
Switched to branch 'hotfix'
Your branch is up-to-date with 'origin/hotfix'.
Switched to a new branch 'hotfix_atm_expired_payment'
$ crbranch -c master
Type: release
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
Switched to a new branch 'release'
//List active branchs
$ crbranch -l
//Merge with auto pull
$ crbranch -m feature_abcd development (EXPERIMENTAL!!)
```
## Feature
1. Auto underscore and remove non alphanumeric characters branch name
2. Auto prefix e.g feature, enhance, bugfix, hotfix
3. Auto checkout to specific branch
4. Auto git pull base branch
5. Auto create branch
6. Custom base branch
7. Minimize wrong selected base branch
## List Predefined Prefix
- f => feature
- e => enhance
- b => bugfix
- h => hotfix
- hf => hotfeature
- t => test
## Additional Arguments
- l => List active branchs
- m => Merge with auto pull
## License
The MIT License (MIT)