标签: git git-config
假设我想将网址https://github.com/CocoaPods/Specs.git上的所有抓取重定向到本地仓库~/.Specs,并且push也更新为原始网址,该怎么办?
https://github.com/CocoaPods/Specs.git
~/.Specs
push
This question似乎在一定程度上解决了我的问题,但此配置会同时影响fetch和push。
fetch
答案 0 :(得分:0)
git remote set-url --push origin user@example.com:repo.git
https://stackoverflow.com/a/4523625/1254812