【问题标题】:Error in github because of Clone and Fork [duplicate]由于克隆和分叉导致 github 出错 [重复]
【发布时间】:2020-01-17 02:43:17
【问题描述】:

我想问你,我在本地系统中对我的克隆存储库进行了更改,但我忘记使用我的本地用户帐户分叉它。 我的存储库来源是http://github.com/repository,而不是http://github.com/useraccount/repository。 我的问题是,是否可以更改来源或获取克隆存储库的分支,因为当我将更改推送到 Github 时出现错误:

“无法访问'https://github.com/repository/':请求的URL返回错误:403”

【问题讨论】:

  • 你仍然可以在 github 上 fork 它,然后设置一个新的远程作为新的 fork repo。然后你就可以正常推送了

标签: git github github-pages github-for-windows


【解决方案1】:

正如here 解释的那样,只需设置

git remote set-url origin http://github.com/useraccount/repository

【讨论】:

  • 很高兴能提供帮助。你现在可以接受我的回答了。
猜你喜欢
  • 2013-12-16
  • 2014-04-08
  • 1970-01-01
  • 2010-12-09
  • 1970-01-01
  • 2012-08-25
  • 1970-01-01
  • 1970-01-01
  • 2011-12-07
相关资源
最近更新 更多