How to track more than one remote with a given branch using Git?

后端 未结 1 448
情歌与酒
情歌与酒 2020-12-14 12:04

The situation is this:

I have more than one remote repository - for reference, lets say that one is the \"alpha\" repository, and we have recently set up a new \"bet

1条回答
  •  长情又很酷
    2020-12-14 12:12

    I don't think it is possible with one git command.
    The other alternative would be to define a git alias which would git pull master from one repo, and then git pull master from the other.

    But if the history of commits differ too greatly between the two master, that would quickly lead to a massive number of conflicts...

    0 讨论(0)
提交回复
热议问题