git 使用过程中常见问题

xiaoxiao2021-02-28  99

1.使用git pull提示refusing to merge unrelated histories

创建了一个origin,两个人分别clone

分别做完全不同的提交

第一个人git push成功

第二个人在执行git pull的时候,提示

fatal: refusing to merge unrelated histories

 

解决方法:

git pull --allow-unrelated-histories

转载请注明原文地址: https://www.6miu.com/read-39583.html

最新回复(0)