【问题标题】:Git globally redirect fetch server, but also update the origin server?Git全局重定向获取服务器,还要更新源服务器?
【发布时间】:2017-01-12 08:05:16
【问题描述】:

假设我想将所有在 url https://github.com/CocoaPods/Specs.git 上的 fetch 重定向到本地 repo ~/.Specs,并且 push 也更新到原始 url,怎么办?

This question 似乎部分解决了我的问题,但此配置同时影响fetchpush

【问题讨论】:

  • 我很确定您可以在 Podfile 中指定自定义 Specs 存储库。

标签: git git-config


【解决方案1】:
git remote set-url --push origin user@example.com:repo.git

https://stackoverflow.com/a/4523625/1254812

【讨论】:

  • 谢谢,但这主要是git 的问题。我知道如何使用私有镜像规范 repo。
  • 哦。 Here.
猜你喜欢
  • 2015-03-21
  • 2010-12-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-05-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多