'heroku' does not appear to be a git repository

前端 未结 21 2021
失恋的感觉
失恋的感觉 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:11

    You could try the following in your root directory:

    // initialize git for your project, add the changes and perform a commit

    git init
    git add .
    git commit -m "first commit"
    

    // create heroku app and push to heroku

    heroku create
    git push heroku master
    

    Not sure where you are in the process. You also don't need github to deploy on heroku, just git. Hope this helps!

提交回复
热议问题