Am 30.07.2012 19:09, schrieb Yves Blusseau:
> Hi all,
> is it possible to avoid merge workflow to have a linear history of 
> commits and avoid the conflicts on the repository ?
> Here are some articles that explain why Merge Workflow is "bad":
> http://www.randyfay.com/node/89
> http://www.randyfay.com/node/91
> 
> Also it's preferable to commit only new "features" in the 'next' branch 
> and leave the master alone.
> The 'master' branch will only be updated when we'll release a new 
> version of BuC.
> 
> For me the "best" approach will be:
> 
> git checkout next      # Check out the "next" branch
> git pull --rebase -p   # Get the latest version from remote
> git checkout -b my_feature  # create our own topical branch 'my_feature'
> 
> Regulary do:
> git fetch origin       # Update your repository's origin/ branches from 
> remote repo
> git rebase origin/next # Plop our commits on top of everybody else's 
> "next" branch
> ... # do stuff here.. Make commits.. test...
> 
> When you are ready to push your modifications:
> git checkout next      # Switch to the local tracking branch
> git pull --rebase -p   # Get the latest version from remote
> git rebase my_feature  # Pull those commits over to the "next" branch
> git push               # Push the "next" branch back up, with my stuff 
> on the top
> 
> What do you think about that ?
> 
> Regards,
> Yves


Hi Yves;

I've read the linked articles and it is my understanding that it will
not that dangerous for us to use a merge workflow during our day to day
work (large merges as the last next->master might be an exception),
cause there are only a few developers, which are mostly working *not* on
the same stuff at the same time. So
git commit
git pull
git push
won't do us any harm.

About "losing" history, it depends IMHO. I use qgit to see the history
and while rebase gives a flat, but readable history file,  qgit handles
also merges pretty well.

Like shown in the comments here
http://randyfay.com/comment/1107#comment-1107

If a change to rebase is considered, maybe this one is easier?
http://randyfay.com/node/103

kp

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to