当我只想为某个远程设备获取数据时,几乎从来没有这种情况。我总是想要所有遥控器。我认为这将是一个通用的用例,git会对此进行解释(它们具有相同的方式pull.rebase true
)。
因此,有一种神奇的方法可以始终从我无法找到的所有遥控器中获取数据吗?我当前的解决方案是使用别名,但是我觉得好像必须有一种更常规的方式。
该git remote update
命令将执行您描述的操作:
$ git remote --help
[...]
update
Fetch updates for a named set of remotes in the repository as
defined by remotes.<group>. If a named group is not specified on
the command line, the configuration parameter remotes.default will
be used; if remotes.default is not defined, all remotes which do
not have the configuration parameter
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句