fatal: not a git repository (or any of the parent directories): .git

我在使用git status命令时,出现此错误,解决办法:

git init

原因是在项目里没有.git这样的一个目录文件,初始化就可以了

原文地址:https://www.cnblogs.com/tdyang/p/12597660.html