解决 Git 报错 fatal: not a git repository (or any of the parent directories): .git 的排查指南排查与解决在非仓库目录执行 Git 命令提示 fatal: not a git repository 的完整方案。Git · troubleshooting · VersionControl2026.11.3