apt-get install git git-core git-doc
ssh-keygen -t rsa -C "youremail@example.com"
在用户主目录下,看看有没有.ssh目录,如果有,再看看这个目录下有没有id_rsa和id_rsa.pub这两个文件,如果都有,说明创建成功。
git int #产生.git目录
touch readme.md
git add readme.md
git commit readme.md -m "first commit..." #本地仓库提交
git remote add origin https://github.com/xxx/example.git #建立远程连接
git push -u origin master #推送到远程仓库
git pull origin master #远程仓库更新到本地仓库