4
我想使用這些bash功能將我的本地倉庫推到兩個遠程倉庫,但我不確定這是否可行。我可以將本地倉庫推到兩個遠程倉庫嗎?
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"
}
下面是做這件事 - HTTP:/ /stackoverflow.com/questions/14290113/git-pushing-code-to-two-remotes –
這裏是舊的方式來做到這一點,它也包含了你pdated類似於上面的答案 - http://stackoverflow.com/questions/849308/pull-push-from-multiple-remote-locations –