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?

1 replies

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 3 months ago · Improve this answer

Markdown allowed
Question or feedback?
Contact us

Tags

developers 28 questions bug 14 questions posts 9 questions resolved 7 questions request 6 questions google-drive 5 questions configure 4 questions pages 3 questions added 3 questions meta 3 questions More tags →
Subscribe for changes
RSS Feed of latest questions