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

Git命令

时间:2015-07-12 21:32:37      阅读:96      评论:0      收藏:0      [点我收藏+]

标签:

1. 检出项目到本地

git clone git@github.com:michaelliao/gitskills.git

2. 查看当前工作区状态

git status

3. 添加文件或文件夹至版本库

添加文件至版本库

git add index.html

添加文件夹至版本库 git add img/

3. 确认提交当前修改

git commit -m "git tracks changes"

4. 相当于是从远程获取最新版本并merge到本地

git pull origin master:master

4. 更新到远程服务器

git push origin master:master

Git命令

标签:

原文地址:http://www.cnblogs.com/rainman/p/4640826.html

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