Best workflow with Git & Github

后端 未结 5 992
天命终不由人
天命终不由人 2020-12-24 14:39

I\'m looking for some advice on how to properly structure the workflow for my team with Git & GitHub.

We are recent svn converts and it\'s kind of confusing how

5条回答
  •  星月不相逢
    2020-12-24 14:50

    You can copy your workflow from svn verbatim. Git can do everything svn can (but it can do more than that!). But your workflow could be improved in spite of CVS used.

    If you want to keep number of branches minimal (which in case you're new to git would in fact simplify things) in the workflow you have described I'd suggest to have (instead of one development branch) three per-developer branches: devel-john, devel-mary, etc:

    devel-john >--\
                   \
    devel-mary >------> staging ---> production
                   /
    devel-peter >-/
    

    This is convenient: all development changes would be pushed to central repository (which is often a good thing even for git) without conflicts and merged anytime by anyone who's willing/obliged to do the merging (for example into the staging branch).

提交回复
热议问题