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

常用 git 命令

时间:2017-11-16 14:11:20      阅读:102      评论:0      收藏:0      [点我收藏+]

标签:stage   include   tag   git log   clu   director   work   常用   compare   

git diff  : compare working directory and staged file ( by git add)

git diff --stage: compare staged file with file on the server 

git diff HEAD: compare working directory and file on the server

 

git show  $commit --stat  : show which files included for $commit

git log -p file : show commit history for file

常用 git 命令

标签:stage   include   tag   git log   clu   director   work   常用   compare   

原文地址:http://www.cnblogs.com/hugb/p/git.html

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