git 解决远程和本地冲突

本地先commit

1. git rebase  origin/master    根据你自己的分支rebase

2. 编辑冲突文件,合并文件。例如:

<<<<<<< 53de7c8f172f73b1fbd0c8f11e5c03f424f7f3c6

合并测试
=======
去年
买了
个表
>>>>>>> test

3. git rebase --continue

4. git add ,git commit 提交即可

参考http://www.cnblogs.com/sinojelly/archive/2011/08/07/2130172.html

原文地址:https://www.cnblogs.com/shininguang/p/5973507.html