我正在從不同的設備構建我的 Express.js 服務器應用程式。我在我的 PC 和筆記本電腦上使用相同的 git 分支。我成功地從我的筆記本電腦部署了它。但是當我嘗試更新一些代碼并嘗試使用以下命令從我的 PC 推送時,問題就出現了:$ git push heroku main.
它回傳以下結果:
$ git push heroku main
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
有什么我想念的嗎?謝謝您的幫助。
uj5u.com熱心網友回復:
您是否忘記使用 heroku cli 將 heroku 添加為 git 遠程?
heroku git:remote -a example-app
https://devcenter.heroku.com/articles/git#for-an-existing-app
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/472679.html
