Conflict resolution or conflict avoidance in GIT?

*爱你&永不变心* 提交于 2019-12-04 14:02:13
VonC

Should we be using branches to work separately?

Yes: he should have done a git pull --rebase (for a branch not yet pushed), before pushing his changes, at which point you would have been able to merge his branch as a simple fast-forward merge.
See also merge vs. rebase and a similar blog post.

(from Git Is Your Friend not a Foe Vol. 4: Rebasing)

More generally, yes, merge locally before pushing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!