码迷,mamicode.com
首页 > 其他好文 > 详细

clone远程代码及push

时间:2017-01-12 19:06:08      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:bash   git clone   portal   git add   data   linux   comm   10.10   com   

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

clone远程代码及push

标签:bash   git clone   portal   git add   data   linux   comm   10.10   com   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!