Git sync same branch in two repositories which are cloned from same master -


i trying implement git in company. decided implement model http://nvie.com/posts/a-successful-git-branching-model/

there 3 branches in main repo, ie master,develop , feature1. there 2 developer named alice , bob. both developers working on clone of main repo. both of them working in feature1 branch. alice has defined git remote, named bob, pointing bob’s repository, , vice versa.

how can make bobs changes on feature branch alice , vice versa?

the "a successful git branching model » nvie.com" comes set of tools called "git-flow" on top of default git installation.

this utility provide some interesting commands deal features. bob or alice or else can create new feature , publish main repository:

git flow feature start <name> git flow feature publish <name> 

then bob , alice have track , pull newly created feature:

git flow feature track <name> git flow feature pull <remote> [<name>] 

and bob , alice can use everyday git basics pull (resp. push) changes (resp. to) main repository.

once feature finished have tell git-flow , delete feature branch main repository:

git flow feature finish <name> git push origin :<name> 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -