GIT 学习四 (连接github)

$ ssh-keygen -t rsa -C "youremail@example.com"  // 创建SSH Key
//将本地推送到github
$git remote add origin https://www.github.com/liaodh/test.git
  //请求方式 : https://www.github.com/liaodh/test.git
  //请求方式 : git@github.com:liaodh/test.git
//
(origin : 远程库的名字,自定义的.)
$git remote rm origin (删除origin)
$git push -u origin  master  (第一次要用 pull 不是 push )

//从github clone到本地
$git clone
https://www.github.com/liaodh/test.git

posted @ 2015-07-19 16:57  廖东海  阅读(122)  评论(0编辑  收藏  举报