github上传项目问题详解

1,尽量使用项目的HTTPS的链接
在这里插入图片描述
2,fatal: refusing to merge unrelated histories
使用这个强制的方法

git pull origin master --allow-unrelated-histories

3,fatal: remote validator already exists.

(1)可以知道其实本地已经同步过一次的github版本库了。需要把原先的删除
(2)先删除远程 Git 仓库 $ git remote rm origin
(3)再添加远程 Git 仓库,成功

猜你喜欢

转载自blog.csdn.net/chegy218/article/details/88774190
今日推荐