开发A操作:
git mv mytest2 mytestA #将mytest2的文件名修改为mytestA
git commit -am"将mytest2的文件名修改为mytestA"
git push -u gitee_mygit1 master #提交到远端仓库
开发B操作:
echo "同时变更了文件名和文件内容" > mytest2
git commit -am"mytest2文件添加了新内容"
git push -u gitee_mygit2 master #提交到远端仓库
出现报错
解决方式:
开发B拉取远端仓库文件以及与当前分支进行合并:
git pull gitee_mygit2 master