pull/push from multiple remote locations

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

    Adding new remote

    git remote add upstream https://github.com/example-org/example-repo.git
    
    git remote -vv
    

    Fetch form multiple locations

    git fetch --all
    

    Push to locations

    git push -u upstream/dev
    

提交回复
热议问题