[git] git start command

来源:互联网 发布:mac原版系统下载 编辑:程序博客网 时间:2024/06/05 05:22
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 0
原创粉丝点击