该目录似乎不是git存储库

马文

我已经将计算机恢复出厂设置,在此之前,我已将github存储库本地同步到远程。现在,我试图添加一个本地存储库,它一直显示:此目录似乎不是git存储库。所有存储库都执行此操作。我将.gitattributes文件粘贴到了github文件中,并创建了一个新的本地存储库。GitHub桌面未添加本地存储库

其他大多数帖子都使用git bash / terminal / command提示符。我使用GitHub桌面,所以我需要一个使用GitHub桌面的解决方案。任何帮助将不胜感激,因为我将所有文件存储在这些存储库中-github是我的备份

Here is what it looks like after I created a new repository for one of the repositories online that I had, and tried linking them with the URL: 存储库设置不显示URL选项

It did not show the URL option. Publishing obviously doesn't work because it already exists on GitHub.

VonC

Instead of adding an existing folder, you should clone your repo to a new one, and start working from said new clone.

See GitHub Desktop cloning a repository.

But if you want to use your existing folder as a local repo of an existing remote repo, follow desktop/desktop issue 2883

  • Drag an ordinary folder into the app (or use Add Local Repository and choose the folder)
  • 您将收到一条消息,指出“此目录似乎不是Git存储库。您想在这里创建存储库吗?” 并且“添加存储库”文件夹被禁用
  • 点击“在此处创建存储库”
  • 选择“存储库->存储库设置...->远程”选项。输入您的远程仓库的URL。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Git推送:“致命的“来源”似乎不是git存储库-致命无法从远程存储库读取。”

Git错误:“上游”似乎不是git存储库

致命的:'origin'似乎不是git存储库

git status中的“致命:不是git存储库(或任何父目录)”

'heroku'似乎不是git存储库

GIT:致命的:'master'似乎不是git存储库

无法将git存储库部署到dokku实例(致命:{reponame}似乎不是git存储库)

致命:不是git存储库(或任何父目录):在Mac OS中为.git

原点似乎不是git存储库

'origin'似乎不是git存储库

fatal-'origin'似乎不是git存储库

Docker构建映像抱怨:致命:不是git存储库(或任何父目录):.git

gitlab-runner使用目录路径而不是URL进行克隆;失败,出现“似乎不是git存储库”

Git Remote似乎不是git存储库

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

TracError:foo.git似乎不是一个Git存储库

git clone致命:'origin'似乎不是VMware vmhgfs共享的git存储库

.bashrc未经我批准即运行别名:致命:不是git存储库(或任何父目录):.git

Github:似乎不是git存储库

无法使用cd致命:不是git存储库(或任何父目录):.git

Capistrano DigitalOcean Ubuntu 14.04致命:不是git存储库(或任何父目录).git

'github.com/x/x'似乎不是git存储库

致命:'jigar / test.git'似乎不是一个git存储库致命:远端意外挂断

Bitbucket Origin 似乎不是 git 存储库

CircleCI 构建到 cPanel 出现“似乎不是 git 存储库”错误

致命:不是 git 存储库:'.'

通过选择源而不是源 Jar 选择 Git 存储库/源目录

git 致命:“开发”似乎不是 git 存储库

'origin/develop' 似乎不是 git 存储库。无法从远程存储库读取