Heroku:如何在Heroku上更改Git遥控器 [英] Heroku: How to change a Git remote on Heroku
本文介绍了Heroku:如何在Heroku上更改Git遥控器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不想将我的应用上传到错误的域.
I do not want to upload my app to the wrong domain.
如何更改git上的git master分支?
How can I change the git master branch on git?
推荐答案
如果您正在使用 heroku
遥控器(默认):
If you're working on the heroku
remote (default):
heroku git:remote -a [app name]
如果要指定其他遥控器,请使用 -r
参数:
If you want to specify a different remote, use the -r
argument:
heroku git:remote -a [app name] -r [remote]
感谢АлексейВолодько指出没有必要删除旧的遥控器.
thanks to Алексей Володько For pointing it out that there's no need to delete the old remote.
这篇关于Heroku:如何在Heroku上更改Git遥控器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文