简体   繁体   English

不是git存储库(或任何父目录):.git

[英]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.

相关问题 致命:不是 git 存储库(或任何父目录):.git - fatal: Not a git repository (or any of the parent directories): .git 致命:不是git存储库(或任何父目录):git add时为.git - fatal: Not a git repository (or any of the parent directories): .git when git add git fatal 不是 git 存储库(或任何父目录).git - git fatal not a git repository (or any of the parent directories) .git sbt-ghpages致命:不是git存储库(或任何父目录):.git - sbt-ghpages fatal: Not a git repository (or any of the parent directories): .git Git Pull在工作树上失败:不是git存储库(或任何父目录) - Git pull fails on a worktree: Not a git repository (or any of the parent directories) 如何解决错误“致命:不是 git 存储库(或任何父目录):.git” - How to solve the error "fatal: not a git repository (or any of the parent directories): .git" 构建 Gradle:不是 git 存储库(或任何父目录):.git - Build Gradle: not a git repository (or any of the parent directories): .git 致命:不是git存储库(或任何父目录):当“捆绑安装”时为.git - fatal: Not a git repository (or any of the parent directories): .git when “bundle install” github工作流 - 致命:不是git存储库(或任何父目录):。git - github workflow - fatal: not a git repository (or any of the parent directories): .git 本地 git 存储库崩溃,导致“不是 git 存储库(或任何父目录)” - Local git repositoy crashed resulting in “Not a git repository (or any of the parent directories)”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM