pull/push from multiple remote locations

后端 未结 15 1636
傲寒
傲寒 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:35

    For updating the remotes (i.e. the pull case), things have become easier.

    The statement of Linus

    Sadly, there's not even any way to fake this out with a git alias.

    in the referenced entry at the Git mailing list in elliottcable's answer is no longer true.

    git fetch learned the --all parameter somewhere in the past allowing to fetch all remotes in one go.

    If not all are requested, one could use the --multiple switch in order to specify multiple remotes or a group.

提交回复
热议问题