提交代码,远程提醒有冲突:
解决方法:
1 : git fetch 获取代码
2 : git rebase origin/master 拷贝远程主分支
3 : 在编辑器找到冲突的代码,解决掉。。。
4 : git add -> git commit -> 正常提交
5 :关键的一步: 在git push 时要设置远程的源,具体指令:
git push --set-upstream origin 分支名 -f
提交代码,远程提醒有冲突:
解决方法:
1 : git fetch 获取代码
2 : git rebase origin/master 拷贝远程主分支
3 : 在编辑器找到冲突的代码,解决掉。。。
4 : git add -> git commit -> 正常提交
5 :关键的一步: 在git push 时要设置远程的源,具体指令:
git push --set-upstream origin 分支名 -f
本文标题:git 冲突问题
本文链接:https://www.haomeiwen.com/subject/senmwxtx.html
网友评论