Your sites Log in Sign up Menu

No such remote 'origin'

I have initialized an empty repository with a first commit and a few files, but when following the instructions for adding an existing repository here, I get

error: No such remote 'origin'

Have I missed a step?


a year ago, 1 replies   Improve this question

Found my solution, instead of running

git remote set-url origin url/to/blog.git

run

git remote add origin url/to/blog.git
Answered a year ago ยท Improve this answer

Privacy Terms