如何在Heroku上更改app的git url

lav*_*apj 22 git heroku

当我从终端I运行"git remote -v"时,得到以下内容:

heroku  git@heroku.com:obscure-taiga-9581.git (fetch)
heroku  git@heroku.com:obscure-taiga-9581.git (push)
origin  http://coastguard-quiz.herokuapp.com/ (fetch)
origin  http://coastguard-quiz.herokuapp.com/ (push)
Run Code Online (Sandbox Code Playgroud)

我想替换"git@heroku.com:obscure-taiga-9581.git"部分.我怎么做?

Win*_*ian 51

我假设你要做的是推送到heroku上git push heroku的coastguard -quiz repo,这样当你更新caostguard-quiz.herokuapp.com时.

git remote rm heroku
git remote add heroku git@heroku.com:coastguard-quiz.git
Run Code Online (Sandbox Code Playgroud)