Home > OS >  Not able to add remote repository
Not able to add remote repository

Time:07-13

I want to push changes from my local repository to my github repo. I start with the commands giving from github quickstep:

git init
git add .
git commit -m "first commit"

and then

$ git add origin https://github.com/Svein-Tore/forrigling.git
fatal: pathspec 'origin' did not match any files

Any suggestions to what can be wrong?

CodePudding user response:

You've to use git remote add origin https://github.com/Svein-Tore/forrigling.git

When you use git add origin, it tries to add the file 'origin'

  • Related