【问题标题】:How to update forked repo from GitHub Web?如何从 GitHub Web 更新分叉存储库?
【发布时间】:2012-10-05 02:08:23
【问题描述】:

我想从 GitHub 网页界面更新一个分叉的 repo。

我从其他问题中尝试了一些东西,但当我使用 git remote add upstream git://blabla 时它给了我fatal: not a git repo

【问题讨论】:

  • 要更新github网页上的上游链接?抱歉,没有这个选项。

标签: github fork repository


【解决方案1】:

先尝试使用https地址,如GitHub FAQ中所述:

git remote add upstream https://github.com/octocat/Spoon-Knife.git
# if upstream already exist
git remote set-url upstream https://github.com/octocat/Spoon-Knife.git

并确定此地址使用的大小写(区分大小写,稍有错误就会给你“not a git repo”)。

【讨论】:

  • 网页界面可以吗?我在控制台上取得了一些进展。我输入了错误的远程 URL。我怎样才能改变它?它给出“远程网址已经存在”
  • @Imrahil 使用git remote set-url:见git-scm.com/docs/git-remote。这将允许您更新/替换与远程关联的 url。
猜你喜欢
  • 2013-04-18
  • 1970-01-01
  • 2015-05-21
  • 2011-04-23
  • 2013-03-16
  • 2011-05-19
  • 1970-01-01
  • 2018-12-01
相关资源
最近更新 更多