[英]Not a git repository (or any of the parent directories): .git
I'm using GitHub desktop and I have no problem until I try to make a new pull request or sync a branch. 我正在使用GitHub桌面,并且在尝试发出新的请求请求或同步分支之前没有问题。
When I write git stage
I receive: 当我编写
git stage
我收到:
Not a git repository (or any of the parent directories): .git
不是git存储库(或任何父目录):.git
But I have the git folder in the repository. 但是我在存储库中有git文件夹。 I tried to clone again the repository.
我试图再次克隆存储库。 Thanks for your help.
谢谢你的帮助。
You should not run git commands in the .git
directory. 您不应在
.git
目录中运行git命令。 Instead, you must run them in the parent directory of the .git
directory. 而是必须在
.git
目录的父目录中运行它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.