1、fatal: destination path '.' already exists and is not an empty directory
翻译就是:目标路径已经存在并且不是一个空目录。
于是我打开工具->文件夹选项->查看->显示隐藏文件,终于发现了隐藏文件夹“.git”。
删掉该文件夹后,再次执行git clone,成功拉下代码。
2、
fatal: refusing to merge unrelated histories
这是因为两个分支没有取得联系。在你操作命令后面加--allow-unrelated-histories
如下:如果是push时报这个错误,则
git push origin master --allow-unrelated-histories