docker 如何修改Git远程仓库?

4urapxun  于 2023-04-29  发布在  Docker
关注(0)|答案(2)|浏览(166)
PS C:\.dev\despesas-python> heroku create app-despesas-pessoais-python
 »   Warning: heroku update available from 7.53.0 to 8.0.5.
Creating ⬢ app-despesas-pessoais-python... done
https://app-despesas-pessoais-python.herokuapp.com/ | https://git.heroku.com/app-despesas-pessoais-python.git
PS C:\.dev\despesas-python> git push heroku main
remote: !       No such app as radiant-gorge-67370.
fatal: repository 'https://git.heroku.com/radiant-gorge-67370.git/' not found
PS C:\.dev\despesas-python> git push heroku main app-despesas-pessoais-python
error: src refspec app-despesas-pessoais-python does not match any
error: failed to push some refs to 'https://git.heroku.com/radiant-gorge-67370.git'
PS C:\.dev\despesas-python> git push heroku app-despesas-pessoais-python
error: src refspec app-despesas-pessoais-python does not match any
error: failed to push some refs to 'https://git.heroku.com/radiant-gorge-67370.git'

我想下载https://git.heroku.com/app-despesas-pessoais-python.git,但是一个错误给予我没有把一些参考推到'https://git。heroku.com/radiant-gorge-67370.git'有没有办法连接到新的Heroku仓库地址?

qyzbxkaa

qyzbxkaa1#

要更改Git仓库的远程仓库,您需要更新heroku远程的Git远程URL。您可以通过以下步骤执行此操作:
1.通过在终端中运行git remote -v命令检查当前远程URL。
1.通过运行git remote rm heroku命令删除当前Heroku远程。
1.通过运行heroku git:remote -a app-despesas-pessoais-python命令添加新的Heroku远程。
1.通过运行命令git remote -v验证是否已正确添加新的遥控器。
1.通过运行git push heroku main命令将您的更改推送到新的Heroku遥控器。

shyt4zoc

shyt4zoc2#

步骤3 -添加新heroku remote git remote set-url heroku https://git.heroku.com/app-despesas-pessoais-python.git
步骤4 -向存储库git add .添加更改
步骤5 -提交对存储库git commit -m [file]的更改
setp 6 -推送到repo git push heroku main

相关问题