git push >> fatal: no configured push destination

后端 未结 2 844
再見小時候
再見小時候 2020-12-24 11:51

I\'m still going through some guides on RoR and I\'m stuck here at Deploying The Demo App

I followed instructions:

With the completion of the

2条回答
  •  猫巷女王i
    2020-12-24 12:23

    You are referring to the section "2.3.5 Deploying the demo app" of this "Ruby on Rails Tutorial ":

    In section 2.3.1 Planning the application, note that they did:

    $ git remote add origin git@github.com:/demo_app.git
    $ git push origin master
    

    That is why a simple git push worked (using here an ssh address).
    Did you follow that step and made that first push?

     www.github.com/levelone/demo_app
    

    wouldn't be a writable URI for pushing to a GitHub repo.

    https://levelone@github.com/levelone/demo_app.git
    

    should be more appropriate.
    Check what git remote -v returns, and if you need to replace the remote address, as described in GitHub help page, use git remote --set-url.

    git remote set-url origin https://levelone@github.com/levelone/demo_app.git
    or 
    git remote set-url origin git@github.com:levelone/demo_app.git
    

提交回复
热议问题