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.
我试图在我的 Mac 上的 GitBash 中运行以下命令,但它不断给出以下错误:
致命:存储库路径不存在。
当我在 Windows 机器上运行它时效果很好,但我需要在我的 Mac 上运行它:(
有没有人有任何想法来解决这个问题?
谢谢
Fatal: repository path does not exist.意味着您正在尝试git在没有存储库的目录中运行命令,您需要git clone获取一个存储库或git init创建一个存储库,或者cd到一个已经签出的存储库目录。
Fatal: repository path does not exist.
git
git clone
git init
cd
所有存储库文件都在.git项目目录的根目录中。你可能缺少一个。
.git