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

git常用命令汇总

时间:2017-08-04 19:22:46      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:tps   com   单行   文件   git log   提交   lan   常用   常用命令   

 

git commit -m ""  只会提交添加到缓存区的文件(只提交添加的)

git commit -a -m ""  能提交修改过,但是没有添加到缓存区的文件(修改过的就能提交)

使用命令:git log  能查看提交历史,后面加上  --pretty=oneline  能使内容单行显示

使用命令:git status  能让我们时刻掌握仓库当前的状态

 

 

 

 

学习文档:

https://git-scm.com/book/zh/v2

持续更新。。。

 

git常用命令汇总

标签:tps   com   单行   文件   git log   提交   lan   常用   常用命令   

原文地址:http://www.cnblogs.com/chenzeyong/p/7286502.html

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