ITeye博客

git - remote add origin 的使用

sitoto · 2012-07-02 12:57 · 开源软件 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。