pull/push from multiple remote locations

后端 未结 15 1239
傲寒
傲寒 2020-11-21 10:17

The short: is there a way to have a git repo push to and pull from a list of remote repos (rather than a single \"origin\")?

The long:

15条回答
  •  说谎
    说谎 (楼主)
    2020-11-21 10:50

    Here is my example with bash script inside .gitconfig alias section

    [alias]
            pushall = "!f(){ for i in `git remote`; do git push $i; done; };f"
    

提交回复
热议问题