美文网首页
Git提交代码报错 refusing to merge unre

Git提交代码报错 refusing to merge unre

作者: 哈德没有门 | 来源:发表于2020-05-08 17:28 被阅读0次

 1、切换到要提交代码的分支

>```

>       git checkout master

>```

2.加上后面这个选项允许不相关历史提交

```

git pull origin master --allow-unrelated-histories 

```

3.提交到远程分支
```

git push origin master 

```

至此解决

相关文章

网友评论

      本文标题:Git提交代码报错 refusing to merge unre

      本文链接:https://www.haomeiwen.com/subject/kmjqjttx.html