简体   繁体   中英

Github managing branches of team

So I'm working with another guy in github and we both have our own branch call tim and scott. All branches have the same code, but Scott just edited something in the code. He commited and pushed to his branch. He then merged with master which worked. Now when scott goes back to his branch He edits again. I edit also. Do I just merge to master, then scott merges with master? We kept having problems with keeping the project right. How do I make the project so we can just update based on what we have, even if we're working on it at the same time?

REPHRASED : I have code slightl different from my friend's and want to merge them together into the master. how would i do this?

You should use a complete branching model, not private branches which are not in sync together. http://nvie.com/posts/a-successful-git-branching-model/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM