Skip to content

robinedwards/gitfeatures

Repository files navigation

git features

git helper scripts for managing feature branches and issuing pull requests

Installation

$ 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

Configuration

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'

Background

These scripts are designed to follow the github git work flow http://scottchacon.com/2011/08/31/github-flow.html

Features

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 stablerelease new

will create a branch called stablerelease_YYYYMMDD

Or if you wish to switch to the current latest stablerelease branch

$ git stablerelease

Hot fixes

For bugs and hot fixes the same functionality is used with 'hotfix' instead of 'feature'

$ git hotfix ie7_menu ... $ git hotfix finish

About

git helper scripts for feature and hotfixes branches

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages