nvie/gitflow — pull request #260 by ukautz (2012-09-26 14:51:45+00:00)
Title: This patch tries to solve the following problem:

Using git flow with multiple remotes, eg in a web development scenario. At least the master, the (current) release and the develop branch should be deployed in a different remote repositoy.

Therefore a new gitflow configuration is introduced:
[gitflow "remote"]
master = origin
release = origin
develop = origin
...

1) Init
The init is extended so that a remote for master, release and develop can be entered. The remotes need to be added before using "git remote add ..". Also a different branch can be chosen.

$ git clone git@my-master:repo.git
$ git remote add my-staging git@my-staging:repo.git
$ git remote add my-develop git@my-develop:repo.git
$ git flow init
Which branch should be used for bringing forth production releases?
- master
Branch name for production releases: [master]
Branch name for "next release" development: [develop]

How to name your supporting branch prefixes?
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []

Do you use multiple remotes?
Remote for master [origin]
Remote for release [origin] my-staging:master
Remote for develop [origin] my-develop:master

2) Features
Also a remote (+branch) per feature can be set:

$ git flow feature start my-feature
$ git flow feature remoteset the-remote:the-branch
..