0
我有兩個權威的git存儲庫,我需要推送到。推到二者是通過將線到的.git /配置文件完成:提交Git配置更改
[remote "origin"]
url = repository1
url = repository2
在pull/push from multiple remote locations討論。
但是每當我的團隊的另一位成員製作一個新的克隆。 .git的/ config文件可以追溯到只有有:
[remote "origin"]
url = repository1
有沒有一種方法,使該庫是安裝在默認情況下,推動這兩個權威渠道「落實」的配置更改?
除了手動編輯配置文件外,你還可以執行'git remote set-url --add origin repository2'。 – poke