问题
有时本地git
仓库需要同步多个远程git
仓库。如何操作呢?
解决办法
在项目隐藏的.git文件夹中有个config文件,编辑它,追加如下内容:
[remote "all"]
url = https://github.com/xxx/xxx.git
url = https://github.com/yyy/yyy.git
保存后, 即可用git push all
命令进行推送了。
idea里可以通过选择all进行推送。
有时本地git
仓库需要同步多个远程git
仓库。如何操作呢?
在项目隐藏的.git文件夹中有个config文件,编辑它,追加如下内容:
[remote "all"]
url = https://github.com/xxx/xxx.git
url = https://github.com/yyy/yyy.git
保存后, 即可用git push all
命令进行推送了。
idea里可以通过选择all进行推送。