本地先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

posted on 2016-10-18 15:31  shininguang  阅读(1995)  评论(0编辑  收藏  举报