新建本地库
1. cd d:
2. mkdir git
3. cd git
4. git init
5. git remote add origin git@github.com:swportal/swportal.git
git remote add linux root@109.110.100.56:/usr/src/git-2.1.2/data/git/swportal.git
clone到本地: 不用新建folder,自动创建swportal文件夹
1. git clone git@github.com:swportal/swportal.git
git clone root@109.110.100.56:/usr/src/git-2.1.2/data/git/swportal.git
修改后
1. git status //查看所有更改
2. git add . //应用所有更改
3. git commit -m "1.2.7 release(feature->block) "
4. git push origin master //第一次要加-u
测试github的链接: ssh -T git@github.com