此博客为经验之谈,后期会不定期更新...
减少冲突的一个诀窍记录:
冲突发生前:
1. 在开始改需求之前,先更新代码,若有必要,在改类或页面之前都先更新一下代码,这样能够至少避免90%的冲突,避免浪费不必要的时间在解决冲突上;
冲突发生后:
1. 看冲突的代码是否有重合,若没有重合,可先更新对方代码,然后提交自己的代码;
2. xml文件冲突若使用(1)的做法可能导致对方的代码被自己现在版本的代码覆盖,最好现将改动的代码复制出来,然后覆盖更新,最后将自己的代码粘贴上去,提交,完美;