添加 git 源地址时出现fatal: not a git repository (or any of the parent directories): .git

在关联远程git url时,出现提示说没有.git这样一个目录(fatal: not a git repository (or any of the parent directories): .git)

在命令行 输入 git init  然后回车就好了

原文地址:https://www.cnblogs.com/lwming/p/15151637.html