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

前端 未结 4 1576
清歌不尽
清歌不尽 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:23

    I faced this issue when I was tring to link a locally created repo with a blank repo on github. Initially I was trying git remote set-url but I had to do git remote add instead.

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

提交回复
热议问题