git 报错和解决

1.报错

fatal: refusing to merge unrelated histories

解决

两个不相干的库进行合并,需要进行强制合并

git pull origin master --allow-unrelated-histories

再次提交即可

2.git add 时报错 in unpopulated submodule 'CRM'

 清除缓存

git rm -rf --cached xxx
原文地址:https://www.cnblogs.com/huay/p/11302964.html