A simple command line app to help you create git branch more faster
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
InterfaceCrBranch.php
LICENSE
README.md
crBranch.php
index.php

README.md

crBranch

contributions welcome GitHub release GitHub license

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)