git - remote add 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