首先是产生的原因:
本地创建了一个仓库(有README),把本地仓库和Gitee关联以后
pull代码,提醒fatal: refusing to merge unrelated histories
上网查到原因是两个分支是两个不同的版本,具有不同的提交历史
1、$git pull origin master --allow-unrelated-histories
2、add commit push
3、去Gitee查看push情况
首先是产生的原因:
本地创建了一个仓库(有README),把本地仓库和Gitee关联以后
pull代码,提醒fatal: refusing to merge unrelated histories
上网查到原因是两个分支是两个不同的版本,具有不同的提交历史
1、$git pull origin master --allow-unrelated-histories
2、add commit push
3、去Gitee查看push情况