git log 常用选项
git log 常用选项
-p 按补丁格式显示每个更新之间的差异。
jiqing@Ubuntu:/home/wwwroot/default/5hao/sheep$ git log -p
commit ba6e651f722d1c4e3612ab38b132377711edc709
Author: jiqing <jiqing@caomall.net>
Date: Wed Apr 25 16:59:28 2018 +0800
转赠五号豆收尾
diff --git a/Wx/Tpl/Mine/bean_transfer_step_two.html b/Wx/Tpl/Mine/bean_transfer_step_two.html
Date: Wed Apr 25 16:59:28 2018 +0800
转赠五号豆收尾
diff --git a/Wx/Tpl/Mine/bean_transfer_step_two.html b/Wx/Tpl/Mine/bean_transfer
_step_two.html
index 2e56015..204a525 100644
--- a/Wx/Tpl/Mine/bean_transfer_step_two.html
+++ b/Wx/Tpl/Mine/bean_transfer_step_two.html
@@ -1,7 +1,6 @@
<include file="Public:header" />
<div class="content">
<div class="user-info" id="for_data_ejs">
-
</div>
<div class="box-form">
<input type="number" class="bean_transfer_num" placeholder="请输入
转赠五号豆数量" id="bean_transfer_num" onkeyup="value=value.replace(/[^\d]/g,'')" value="" />
--stat 显示每次更新的文件修改统计信息。
jiqing@Ubuntu:/home/wwwroot/default/5hao/sheep$ git log --stat
commit ba6e651f722d1c4e3612ab38b132377711edc709
Author: jiqing <jiqing@caomall.net>
Date: Wed Apr 25 16:59:28 2018 +0800
转赠五号豆收尾
Wx/Tpl/Mine/bean_transfer_step_two.html | 1 -
1 file changed, 1 deletion(-)
--shortstat 只显示 --stat 中最后的行数修改添加移除统计。
jiqing@Ubuntu:/home/wwwroot/default/5hao/sheep$ git log --shortstat
commit ba6e651f722d1c4e3612ab38b132377711edc709
Author: jiqing <jiqing@caomall.net>
Date: Wed Apr 25 16:59:28 2018 +0800
转赠五号豆收尾
1 file changed, 1 deletion(-)
--name-only 仅在提交信息后显示已修改的文件清单。
jiqing@Ubuntu:/home/wwwroot/default/5hao/sheep$ git log --name-only
commit ba6e651f722d1c4e3612ab38b132377711edc709
Author: jiqing <jiqing@caomall.net>
Date: Wed Apr 25 16:59:28 2018 +0800
转赠五号豆收尾
Wx/Tpl/Mine/bean_transfer_step_two.html
--name-status 显示新增、修改、删除的文件清单。
jiqing@Ubuntu:/home/wwwroot/default/5hao/sheep$ git log --name-status
commit ba6e651f722d1c4e3612ab38b132377711edc709
Author: jiqing <jiqing@caomall.net>
Date: Wed Apr 25 16:59:28 2018 +0800
转赠五号豆收尾
M Wx/Tpl/Mine/bean_transfer_step_two.html
--abbrev-commit 仅显示 SHA-1 的前几个字符,而非所有的 40 个字符。
jiqing@Ubuntu:/home/wwwroot/default/5hao/sheep$ git log --abbrev-commit
commit ba6e651
Author: jiqing <jiqing@caomall.net>
Date: Wed Apr 25 16:59:28 2018 +0800
转赠五号豆收尾
--author jiqing 指定作者
jiqing@Ubuntu:/home/wwwroot/default/5hao/sheep$ git log --author jiqing
commit ba6e651f722d1c4e3612ab38b132377711edc709
Author: jiqing <jiqing@caomall.net>
Date: Wed Apr 25 16:59:28 2018 +0800
转赠五号豆收尾
commit c1b7ec7ea1f0cf076197c9b105f2e968f5b4d1c8
Merge: 28c658d 0063f8d
Author: jiqing <jiqing@caomall.net>
Date: Wed Apr 25 16:59:11 2018 +0800
Merge branch '5hao' of https://git.coding.net/sucry-integral/sheep into 5hao
--pretty 美化
jiqing@Ubuntu:/home/wwwroot/default/5hao/sheep$ git log --pretty=short
commit ba6e651f722d1c4e3612ab38b132377711edc709
Author: jiqing <jiqing@caomall.net>
转赠五号豆收尾
commit c1b7ec7ea1f0cf076197c9b105f2e968f5b4d1c8
Merge: 28c658d 0063f8d
Author: jiqing <jiqing@caomall.net>
Merge branch '5hao' of https://git.coding.net/sucry-integral/sheep into 5hao
也可以组合使用
jiqing@Ubuntu:/home/wwwroot/default/5hao/sheep$ git log --pretty=short --author=jiqing
commit ba6e651f722d1c4e3612ab38b132377711edc709
Author: jiqing <jiqing@caomall.net>
转赠五号豆收尾
commit c1b7ec7ea1f0cf076197c9b105f2e968f5b4d1c8
Merge: 28c658d 0063f8d
Author: jiqing <jiqing@caomall.net>
Merge branch '5hao' of https://git.coding.net/sucry-integral/sheep into 5hao
commit 28c658de7b324772c385be232abf48b4b8410cef
Author: jiqing <jiqing@caomall.net>
转赠五号豆收尾
commit 0e125b52d1178869274de81943fd16f67d574d06
Author: jiqing <jiqing@caomall.net>
转赠五号豆初步
commit 5f80991fe38b1cb44079441eb90e8b629d89d19f
Author: jiqing <jiqing@caomall.net>
验证第一步
git log 常用选项的更多相关文章
- git log 常用命令及技巧
git log常用命令以及技巧 1.git log 如果不带任何参数,它会列出所有历史记录,最近的排在最上方,显示提交对象的哈希值,作者.提交日期.和提交说明.如果记录过多,则按Page Up.Pag ...
- git log 常用命令
1.git log 如果不带任何参数,它会列出所有历史记录,最近的排在最上方,显示提交对象的哈希值,作者.提交日期.和提交说明.如果记录过多,则按Page Up.Page Down.↓.↑来控制显示: ...
- git log命令常用参数集合
git log 查看 提交历史 默认不用任何参数的话,git log 会按提交时间列出所有的更新,最近的更新排在最上面. 常用的格式占位符写法及其代表的意义.选项 说明%H 提交对象(commit)的 ...
- git log --stat常用命令
1,显示被修改文件的修改统计信息,添加或删除了多少行. git log --stat 2,显示最近两条的修改 git log --stat -2 3,显示具体的修改 git log -p -2 4, ...
- [译]git log进阶
格式化log输出 oneline --oneline标记将每个commit压缩成一行. 默认情况下显示一个commit ID和commit描述的第一行. 输出如下: 0e25143 Merge bra ...
- git一些常用设置
用法:git config [选项] 配置文件位置 --global 使用全局配置文件 --system 使用系统级配置文件 -- ...
- git log 查看 提交历史
在提交了若干更新之后,又或者克隆了某个项目,想回顾下提交历史,可以使用 Git log 命令查看. 接下来的例子会用我专门用于演示的 simplegit 项目,运行下面的命令获取该项目源代码: git ...
- Git log高级用法
格式化Log输出 首先,这篇文章会展示几种git log格式化输出的例子.大多数例子只是通过标记向git log请求或多或少的信息. 如果你不喜欢默认的git log格式,你可以用git config ...
- git log 查看 当前分支的 提交历史
git log 查看 当前分支的 提交历史 在提交了若干更新之后,想回顾下提交历史,可以使用 git log 命令查看 默认不用任何参数的话,git log 会按提交时间列出所有的更新,最近的更新排 ...
随机推荐
- P1387 最大正方形&&P1736 创意吃鱼法
P1387 最大正方形 P1736 创意吃鱼法 两道类似的$DP$ 转移方程基本上类似于$f[i][j]=min(f[i-1][j-1],min(f[i][j-1],f[i-1][j]))$ 考虑构成 ...
- ubuntu环境安装docker
查看已安装的docker apt list docker* 如果已安装,并且需要卸载,则执行以下命令: apt remove docker* 更新apt索引 apt update apt需要支持HTT ...
- lnmp -memcached使用
系统需求: CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian/Deepin Server/Aliyun/Amazon/Mint Linux发行版 需要5GB以上硬盘剩 ...
- java成员变量
成员变量是在类范围内定义的变量 局部变量是在一个方法内定义的变量 https://www.cnblogs.com/zhengchenhui/p/5762966.html
- 九度oj 题目1061:成绩排序
题目1061:成绩排序 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:24473 解决:6960 题目描述: 有N个学生的数据,将学生数据按成绩高低排序,如果成绩相同则按姓名字符的字母序排 ...
- dynamic-imports & web components & html dynamic import
dynamic-imports web components & html dynamic import https://github.com/webcomponents/html-impor ...
- POJ3169 差分约束 线性
Layout Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12522 Accepted: 6032 Descripti ...
- windows PHP配置随笔
这几天配置本地windows wnmp(windows + nginx + mysql + php 5.3)遇到了不少问题.决定以后随笔记下解决的问题. #php.ini 配置含路径的值时,要注意把使 ...
- struct init
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h& ...
- hdu - 1104 Remainder (bfs + 数论)
http://acm.hdu.edu.cn/showproblem.php?pid=1104 注意这里定义的取模运算和计算机的%是不一样的,这里的取模只会得到非负数. 而%可以得到正数和负数. 所以需 ...