zl程序教程

您现在的位置是:首页 >  其他

当前栏目

【Git初探】Git中fatal: Not a git repository (or any of the parent directories): .git错误的解决办法

错误Git The not of 解决办法 or 初探
2023-09-11 14:19:36 时间

【Git初探】Git中fatal: Not a git repository (or any of the parent directories): .git错误的解决办法

今天用git bash更新项目时遇到了无论使用什么命令都会报fatal: Not a git repository (or any of the parent directories): .git的情况。
其实字面意思写得挺明显的:(当前)不是一个git的目录(或任何一个父目录),
所以按照字面意思使用 git init 新建一个.git目录就能解决问题了。

手动实验一下,效果显著。