fatal: refusing to merge unrelated histories

Git 提交代码时遇到冲突了,所以 git pull 拉不下来远程代码。使用一下命令解决:

git pull origin master --allow-unrelated-histories

然后解决冲突的文件,接着 git add --allgit commit -i -m "fix conflict"git push -u origin master

猜你喜欢

转载自www.cnblogs.com/wumz/p/9820343.html
今日推荐