GB (Git Branch) is a small utility for working with git branches.
-
Install the gem
# From source
$ git clone https://github.com/jeffremer/gb.git $ cd gb $ rake install
# From rubygems.org $ gem install gb
-
Run gb setup from inside your git repository:
$ gb setup
$ gb
Tasks:
gb feature [SHORT_DESCRIPTION] # Creates a feature branch
gb fix [NUMBER] [SHORT_DESCRIPTION] # Creates a bug fix branch
gb help [TASK] # Describe available tasks or one specific task
gb setup # Runs the first time configuration
$ gb feature My new feature branch
run git checkout -b jr/my-new-feature-branch from "."
$ gb fix 1 My new bug fix branch
run git checkout -b jr/GB-1/my-new-bug-fix-branch from "."
- Fork it
- Create your feature branch (
gb feature My mew feature
) or bug fix (gb fix 123 My bug fix
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request