I am trying to implement Git in my company. I decided to implement this model http://nvie.com/posts/a-successful-git-branching-model/
There are three branches in main repo, ie master,develop and feature1. There are two developer named Alice and Bob. Both developers are working on the clone of main repo. Both of them working in feature1 branch. Alice has defined a Git remote, named bob, pointing to Bob’s repository, and vice versa.
How can i make get Bobs changes on feature branch to Alice and vice versa?
The “A successful Git branching model » nvie.com” comes with a set of tools called “git-flow” on top of your default git installation.
This utility provide some interesting commands to deal with features. Thus Bob or Alice or anyone else can create a new feature and publish it to the main repository:
Then Bob and Alice have to track and pull the newly created feature:
And then Bob and Alice can use everyday git basics to pull (resp. push) changes from (resp. to) the main repository.
Once the feature is finished you have to tell it to git-flow and delete the feature branch from the main repository: