version control - How sync work using git-flow -
i , co-worker working project. there --bare remote repo have cloned our pc. have both initialized own personal repos git-flow. have develop , master branch.
which branch shoult use sync work co-worker?
if not commit changes in feature branches, develop branch dirty , can't push sync. alternative use create new feature branch called "sync release" every time want sync work. closure of feature branch update master branch , can sync (not dirty develop branch).
this our current workflow. correct git structure when developer use git-flow , want share work correctly?
syncing develop branch best approach shields away unfinished features co-worker still working on.
if local develop branch dirty @ given moment, git stash can save away local work temporarily (and use git stash pop take out again after sync).
having said that, bear in git distributed system and, such, can both sync , work on feature in progress without going through “central” repo.
see example description in nvie’s original description of git-flow “decentralized centralized”:

Comments
Post a Comment