clone远程代码及push

clone远程代码
1. git bash进入 git文件夹
2. 从远程直接clone: git clone root@109.110.100.56:/usr/src/git-2.1.2/data/git/swportal.git
会在git文件夹下直接生成swportal文件夹
3. cd swportal

修改代码后
git status
git add .
git commit -m "version 1.0"
git status
git push linux master //第一次需要加-u

原文地址:https://www.cnblogs.com/wujixing/p/6279117.html