Can I push a local repo to two remote repos?
本问题已经有最佳答案,请猛点这里访问。
我想使用这些bash函数将本地repo推送到两个远程repo,但我不确定这是否有效。
1 2 3 4 5 6 7 8 9 10 11 12 13  | p_foo_0() { git add -A . git commit -m"test" git push origin master echo"success" } p_foo_1() { git add -A . git commit -m"test" git push heroku master echo"success" }  | 
使用以下方式配置遥控器:
1 2  | git remote set-url all --push --add <first-repo> git remote set-url all --push --add <second-repo>  | 
现在您可以使用:
1  | git push all master  | 
号
推动两次回购