[英]Not able to add remote repository
I want to push changes from my local repository to my github repo.我想将更改从本地存储库推送到我的 github 存储库。 I start with the commands giving from github quickstep:
我从 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?有什么建议可以出错吗?
You've to use git remote add origin https://github.com/Svein-Tore/forrigling.git
你必须使用
git remote add origin https://github.com/Svein-Tore/forrigling.git
When you use git add origin
, it tries to add the file 'origin'当您使用
git add origin
时,它会尝试添加文件 'origin'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.