2011-05-16 38 views

回答

14

您可以先推送至multiple repos at one(配置为with git remote,如git remote set-url)。

git remote add all github:path/proj.git 
git remote set-url --add --push all url = heroku:path/proj.git 

这将产生类似的配置:

[remote "all"] 
    url = github:path/proj.git 
    url = heroku:path/proj.git 

则:如果您的回购是只为你写

git push all --all. 

,你不需要从他们全部取在一次操作中。您只需要一次性保持更新。