当前位置:   article > 正文

【已解决】fatal: ‘origin/分支名‘ does not appear to be a git repository | 无法读取远程仓库_fatal: 没有此远程 'origin

fatal: 没有此远程 'origin

文章目录

问题
$ git push origin/分支名
fatal: 'origin/分支名' does not appear to be a git repository
fatal: 无法读取远程仓库。

请确认您有正确的访问权限并且仓库存在。
  • 1
  • 2
  • 3
  • 4
  • 5
原因

命令写错了。
git push 分支到远程时,origin分支名之间是空格,而不是斜杠

解决
$ git push origin 分支名
枚举对象: 29, 完成.
对象计数中: 100% (29/29), 完成.
使用 8 个线程进行压缩
压缩对象中: 100% (11/11), 完成.
写入对象中: 100% (15/15), 1.20 KiB | 1.20 MiB/s, 完成.
总共 15(差异 8),复用 0(差异 0),包复用 0
......
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号