git helper scripts for managing feature branches and issuing pull requests
$ pip install git+git://github.com/robinedwards/gitfeatures.git
Install for development:
$ git clone git://github.com/robinedwards/gitfeatures.git $ cd gitfeatures $ pip install -r requirements-dev.txt $ pre-commit install $ python setup.py develop
This project works out of the box with github. If you would like to use bitbucket set the following environment variable
$ export GITFEATURES_REPO='bitbucket'
This project defaults to using 'master' for the base branch. If you would like to configure a different base branch set the following envronment variable
$ export GITFEATURES_MASTER_BRANCH='develop'
This project defaults to using 'merge' strategy for pre-PR automation. If you would like to configure a rebase strategy set the following envronment variable
$ export GITFEATURES_STRATEGY='rebase'
These scripts are designed to follow the github git work flow http://scottchacon.com/2011/08/31/github-flow.html
Create a new feature (create a new local and remote branch prefixed 'feature')
$ git feature new html_pruning
Issue pull request for the current branch (to be reviewed by someone else).
$ git pullrequest
After pull request has been excepted and merged into master finish the feature (delete local and remote branch)
$ git feature finish
Or if your not currently working on the feature branch
$ git feature finish html_pruning
Or if you wish to create a stable branch from a specific checkout
$ git stable|hotfix|release new
will create a branch called stable|hotfix|release_YYYYMMDD
Or if you wish to switch to the current latest stable|hotfix|release branch
$ git stable|hotfix|release
For bugs and hot fixes the same functionality is used with 'hotfix' instead of 'feature'
$ git hotfix ie7_menu ... $ git hotfix finish