2016-02-10 149 views
0

可以说我正在目录/Users/UserName/Documents/Repos/ProjectX。每次成功完成功能后,我都会对comit进行更改。现在我想要将这些更改推向多个回购。我可以在git下执行此操作吗?推动承诺多个回购

+4

[从多个远程位置拉出/推送]的可能重复(http://stackoverflow.com/questions/849308/pull-push-from-multiple-remote-locations) – emlai

回答

1

您需要为每个要推送到的存储库定义远程设备。

定义远程使用这种形式:

git remote add repo1 <url> 

例如,如果推到Linux Kernelremote命令是这样的:

git remote add repo1 https://github.com/torvalds/linux.git 

然后,当你推,明确引用遥控器:

git push repo1 master 

了解更多关于管理遥控器here