git解决冲突(rebase版)

当使用git rebase碰到冲突时,

git rebase <Remote Branch>/<Your Branch>

信息如下:

error: Failed to merge in the changes.
Patch failed at
The copy of the patch that failed is found in: .git/rebase-apply/patch When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".

在代码上解决冲突后,

git add .

将修改add进来,并且继续rebase提交,使用命令

git rebase --continue

最后push代码

git push <Remote Branch> <Your Branch>
上一篇:优先队列priority_queue的比较函数


下一篇:2017湘潭大学邀请赛E题(贪心)