背景:
同时使用了Eclipse和gitBash提交同一个项目文件,出现这个错误提示:
fatal:refusing to merge unrelated histories
解决方案:
1、git pull origin master --allow-unrelated-histories
2、git add .
3、git push
成功用gitBash提交了!
背景:
同时使用了Eclipse和gitBash提交同一个项目文件,出现这个错误提示:
fatal:refusing to merge unrelated histories
解决方案:
1、git pull origin master --allow-unrelated-histories
2、git add .
3、git push
成功用gitBash提交了!