简体   繁体   English

GitHub:致命:'origin' 似乎不是一个 git 存储库

[英]GitHub: fatal: 'origin' does not appear to be a git repository

Yellow, I have tried setting up the option "Accessing (Pushing to) Github without username and password" following these steps... https://medium.com/@amanze.ogbonna/accessing-pushing-to-github-without-username-and-password-3022feb077fb黄色,我尝试按照以下步骤设置“无需用户名和密码即可访问(推送到)Github”选项... https://medium.com/@amanze.ogbonna/accessing-pushing-to-github-without-用户名和密码-3022feb077fb

But now I get an error that I can't seem to shake:但现在我收到一个我似乎无法摆脱的错误:

ficho@ficho-PS63-Modern-8M:~/Desktop/FUTSAL CUP 2020/www$ git push
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

ficho@ficho-PS63-Modern-8M:~/Desktop/FUTSAL CUP 2020/www$ git remote -v
github  https://github.com/FilipZafran/FutsalCup.git (fetch)
github  https://github.com/FilipZafran/FutsalCup.git (push)
origin  origin (fetch)
origin  origin (push)

I am using Ubuntu 18.4.我正在使用 Ubuntu 18.4。

This is the Github repo: https://github.com/FilipZafran/FutsalCup这是 Github 存储库: https : //github.com/FilipZafran/FutsalCup

Not sure what I messed up...不知道我搞砸了什么...

  • The origin is a conventional default name for remote repository.是远程存储库的常规默认名称。 It means that running git push will try to push commits to the origin repository.这意味着运行git push将尝试将提交推送到原始存储库。
  • Look at your list of remotes.看看你的遥控器列表。 You have defined repository called github , while origin has no proper url defined.您已经定义了名为github 的存储库,而origin没有定义正确的 url。
  • To fix that I would remove all remotes and add it again properly:为了解决这个问题,我将删除所有遥控器并再次正确添加:
git remote remove origin
git remote remove github
git remote add origin git@github.com:FilipZafran/FutsalCup.git

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 致命:'origin' 似乎不是 git 存储库 - fatal: 'origin' does not appear to be a git repository 致命的-“起源”似乎不是 git 存储库 - fatal- 'origin' does not appear to be a git repository 从起源推送到克隆:“致命:似乎不是git存储库” - Pushing from origin to clone: “fatal: does not appear to be a git repository” gerrit-cherry-pick:致命:'origin'似乎不是git存储库 - gerrit-cherry-pick:fatal: 'origin' does not appear to be a git repository Git 推送:“致命的‘起源’似乎不是 git 存储库 - 致命无法从远程存储库读取。” - Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository." Git推送失败“致命:'origin'似乎不是致命的git存储库:无法从远程存储库读取” - Git push failed “fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository” 'origin'似乎不是git存储库' - 'origin' does not appear to be a git repository' origin似乎不是一个git存储库 - origin does not appear to be a git repository Git push origin master -f:“致命的'origin'似乎不是 git 存储库 - 致命无法从远程存储库读取。” - Git push origin master -f : “fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository.” 致命:似乎不是 git 存储库 - fatal: does not appear to be a git repository
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM