Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在过去的几天里,我一直遇到以下问题。我对 git 很陌生,所以我不确定是什么导致了这个问题。
我不知道从这里去哪里。
任何帮助,将不胜感激。
根据错误消息,您正在尝试在不在 git 存储库中的目录中执行操作。
尝试从例如你的 repo 的根目录(带有.git目录的那个)运行它
.git
您是否在目录中初始化了 Git 存储库?
通过在 Git bash 中键入“git init”来执行此操作。