Why does Git tell me “No such remote 'origin'” when I try to push to origin?

前端 未结 4 1573
清歌不尽
清歌不尽 2021-01-29 21:09

I am very new to Git; I only recently created a GitHub account.

I\'ve just tried to push my very first repository (a sample project), but I\'m getting the following erro

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-29 21:20

    I'm guessing you didn't run this command after the commit failed so just actually run this to create the remote :

     git remote add origin https://github.com/VijayNew/NewExample.git
    

    And the commit failed because you need to git add some files you want to track.

提交回复
热议问题