
1 foccy 2015-06-06 09:34:47 +08:00 git push origin branch 这样? 可以 google 一下。 |
3 jokester 2015-06-06 09:48:54 +08:00 先学会提问题 你不**commit**到远程repo 你**push**到远程repo |
4 zts1993 2015-06-06 11:22:54 +08:00 via Android commit只要一次吧,应该是push两次,要不写个脚本。。。。 |
5 gowithwind 2015-06-06 14:16:56 +08:00 帮你搜了下 git remote set-url origin --push --add user1@repo1 git remote set-url origin --push --add user2@repo2 git remote -v show |
6 roychan 2015-06-06 14:23:22 +08:00 git push origin master (branch) |
7 julyclyde 2015-06-07 12:17:36 +08:00 @zts1993 push两次应该是同一个行为啊,理论上不会第一次push一个remote,第二次push另一个,除非加参数。而lz问的就是:加什么参数 |
8 eastphoton 2015-06-07 18:00:25 +08:00 commit 只需要一次提交到本地git仓库,你需要的是分别push到两家 git commit -m "can you Google before ask?" git push origin master git push heroku master (master是branch名,如果不同自行修改) 如果你需要只输入git push就提交到heroku而不指定remote仓库名称,那么执行一次 git branch --set-upstream=heroku 提问之前请先搜索一下,这种简单问题最好不要浪费他人时间 http://www.beiww.com/doc/oss/smart-questions.html |