git
1.ter; ssh-keygen 三击,vim ~/.ssh/id_rsa.pub , 拷贝字符串
2. 在git里面填写keygen
3.网页新建文件夹,把本机文件同步到git文件夹
代码:
定位文件夹
cd ls
cd desktop
echo "# git" >> README.md
git init
//添加文件
git add README.md
cd ls
git add git.rtf
//上传服务器
git commit -m "first commit"
git remote add origin https://github.com/coderMJL/git.git
git push -u origin master
//上传服务器
git remote add origin https://github.com/coderMJL/git.git
git push -u origin master
桌面客户端
直接操作
原文:http://www.cnblogs.com/coderMJL/p/4894448.html