doubleyong
管理员
管理员
  • 最后登录2025-12-02
  • 发帖数1198
  • 最爱沙发
  • 喜欢达人
  • 原创写手
  • 社区居民
  • 忠实会员
阅读:3930回复:0

[其它]git bug: fatal: repository 'origin' does not exist

楼主#
更多 发布于:2023-02-16 14:46
问题:
      使用git 克隆命令时,报错:fatal: repository 'origin' does not exist


命令如下:
   git clone origin


原因:
注意:克隆的时候,要指定远程仓库的地址,不能使用别名,否则报错:fatal: repository 'origin' does not exist


解决方案:
使用具体的仓库地址进行克隆


1.  默认克隆远程master分支上的代码:git clone [远程仓库地址]
2. 克隆远程仓库指定分支上的代码:git clone -b [分支名] [远程仓库地址]

参考 :https://blog.csdn.net/weixin_42051619/article/details/90646579
知识需要管理,知识需要分享
游客


返回顶部

公众号

公众号