问题:
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")? 简短的说:有没有办法将git repo推送到远程仓库(而不是单个“来源”)列表并从中提取?
The long: I often have a situation when I'm developing an app in multiple computers, with different connectivity – say a laptop while on transit, a computer "A" while I'm in a certain location, and another computer "B" while on another. 冗长的话:当我在多台计算机上开发具有不同连接性的应用程序时经常遇到这种情况–例如在运输过程中的便携式计算机,在特定位置的计算机“ A”和另一台计算机“ B”而在另一个。 Also, the laptop might have connectivity with only either "A" or "B", and sometimes both. 另外,笔记本电脑可能仅与“ A”或“ B”(有时两者)具有连接。
What I would like to is for git to always "pull" from and "push" to all the computers it can currently connect to, so it's easier to jump from one machine to the other and continue working seamlessly. 我想让git始终从其当前可以连接的所有计算机“拉”和“推”到它,因此从一台机器跳到另一台机器并继续无缝地工作更容易。
解决方案:
参考一: https://stackoom.com/question/3YwW/从多个远程位置拉-推参考二: https://oldbug.net/q/3YwW/pull-push-from-multiple-remote-locations
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4258789