我们在使用git合并分支时,经常会有冲突的情况,下面我们来解决一下:
1.将代码拉到本地
git clone xxxxxxx
2.切换到你的分支
git checkout xxx
3.推到你想要的主分支,这样就会报错提示
git pull origin developer (主分支)
4.用vscode打开文件,py里会直接显示冲突的地方
5.手动修改
6.提交修改好的代码
git add .
git commit -m 'resolve merge conflict'
git push