如何在Heroku上更改Git Remote [英] How to change a Git remote on Heroku
本文介绍了如何在Heroku上更改Git Remote的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不想将我的应用上传到错误的域名。
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
remote(默认) :
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上更改Git Remote的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文