添加远程仓库
$ git remote add origin git@github.com:xxwdll/test.git
从远程仓库克隆
$ git clone git@github.com:xxwdll/test.git
将本地仓库内容提交github
$ git pull --rebase origin master
//第一次需要加-u,后面不需要
$ git push -u origin master
从远程更新
$git remote -v //查看远程仓库
$git fetch origin master:temp
$git merge temp
$git branch -d temp