1
foccy 2015 年 6 月 6 日
git push origin branch 这样?
可以 google 一下。 |
3
jokester 2015 年 6 月 6 日 先学会提问题
你不**commit**到远程repo 你**push**到远程repo |
4
zts1993 2015 年 6 月 6 日 via Android
commit只要一次吧,应该是push两次,要不写个脚本。。。。
|
5
gowithwind 2015 年 6 月 6 日
帮你搜了下
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 年 6 月 6 日
git push origin master (branch)
|
7
julyclyde 2015 年 6 月 7 日
@zts1993 push两次应该是同一个行为啊,理论上不会第一次push一个remote,第二次push另一个,除非加参数。而lz问的就是:加什么参数
|
8
eastphoton 2015 年 6 月 7 日
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 |