当前位置:   article > 正文

git - remote add origin 的使用

git remote add -f origin
Global setup:
Set up git
git config --global user.name "Your Name"
git config --global user.email huang.gadela@gmail.com

Next steps:
mkdir test
cd test
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin https://github.com/sitoto/test.git
git push -u origin master

Existing Git Repo?
cd existing_git_repo
git remote add origin https://github.com/sitoto/test.git
git push -u origin master

Importing a Subversion Repo?
Check out the guide for step by step instructions.

When you're done:
Continue

===========================================
error:
error: The requested URL returned error: 403 while accessing https://github.com/dd/test.git/info/refs
fatal: HTTP request failed
=============================
原因:authenticity of host 'github.com (207.97.227.239)' can't be established
RSA key fingerprint 。。。。。。
解决:
git remote set-url origin git@github.com:dd/test.git
会提示 加入 github.com 到 list of known hosts
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/683635
推荐阅读
相关标签
  

闽ICP备14008679号