如何解决错误的“致命:不是git存储库(或任何父目录):.git”
我已经克隆了一个Git存储库,并在Pycharm中创建了一个新项目。 现在,我已经在Bitbucket创建了一个新的实验分支,并希望在本地进行查看。
因此,我使用”
git Checkout功能/MLJ-62-MOVE-MERGING-RECCURCURRING-LAYOUTS”
但是我有一个错误,
致命:不是git存储库(或任何父目录):.git
I have cloned a git repository and created a new project in pycharm.
Now, i have created a new experimental branch in bitbucket and want to git checkout locally.
Hence, I use "
git checkout feature/MLJ-62-move-merging-of-reoccurring-layouts"
But I have this error,
fatal: not a git repository (or any of the parent directories): .git
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您在克隆目录中运行git命令(其中有.git)。
Make sure that you run git commands in cloned directory(that has .git in it).
当Git找不到分支名称时,就会发生这种情况。
this happens when git can't find the branch name.