初学git,出现错误:fatal: Not a git repository (or any of the parent directories): .git

提示说没有.git这样一个目录,解决办法:

输入  git init

就可以啦。

原文地址:https://www.cnblogs.com/z-s-q/p/6059194.html