'heroku' does not appear to be a git repository

前端 未结 21 2073
失恋的感觉
失恋的感觉 2020-12-12 08:47

When I try to push my app to Heroku I get this response:

fatal: \'heroku\' does not appear to be a git repository
fatal: Could not read from remote repositor         


        
21条回答
  •  醉话见心
    2020-12-12 09:06

    You forgot to link your app name to your heroku. It's a very common mistake. if your app is not created, then use:

    heroku create (optional app name)
    

    else:

    git add .
    git commit -m "heroku commit"
    
    heroku git:remote -a YOUR_APP_NAME
    
    git push heroku master
    

提交回复
热议问题