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 会按提交时间列出所有的更新,最近的更新排 ...
随机推荐
- [GXOI/GZOI2019]与或和(单调栈)
想了想决定把这几题也随便水个解题报告... bzoj luogu 思路: 首先肯定得拆成二进制30位啊 此后每一位的就是个01矩阵 Q1就是全是1的矩阵个数 Q2就是总矩阵个数减去全是0的矩阵个数 ...
- 配置Mysql审计
mysql-audit.json:Mysql审计日志 插件下载地址: https://bintray.com/mcafee/mysql-audit-plugin/release/1.1.4-725#f ...
- C#NumberFormatInfo类
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0sAAAD2CAIAAACImosXAAAgAElEQVR4nOy9V3Nk13X+vTt3owPSJJ ...
- stl sort和qsort的使用
好不容易使用了下stl的qsort函数,顺便和sort函数一起总结下: 很多时候我们都需要用到排序. 例如: 1 #include <iostream> #include <algo ...
- C++动态申请内存 new T()与new T[]的区别
new与delete 我们知道,new和delete运算符是用于动态分配和撤销内存的运算符. new的用法 开辟单变量地址空间: i. 如 new int ; 指开辟一个存放数组的存储空间,返回一个指 ...
- PAT 1073. 多选题常见计分法
PAT 1073. 多选题常见计分法 批改多选题是比较麻烦的事情,有很多不同的计分方法.有一种最常见的计分方法是:如果考生选择了部分正确选项,并且没有选择任何错误选项,则得到50%分数:如果考生选择了 ...
- Vue如何点亮多个tab选项简易方法
我们平常遇到点击选择会遇到单选或多选,当你设计图是自定义的时候,第一反应就是引入UI插件吧.可是如果项目只用到插件的这一点点功能,我们引入了一个插件这就不太友好了.此时我们自己写这个小功能是很简单的, ...
- linux中的命令
1,ln-链接 功能是为某一个文件在另外一个位置建立一个同步的链接,这个命令最常用的参数是-s,具体用法是: ln -s 源文件 目标文件 // -s 是 symbolic(符号,象征)的意思. l ...
- ..net 3.5新特性之用this关键字为类添加扩展方法
具体用法如下: public static class ClassHelper { //用this 声明将要吧这个方法附加到Student对象 public static bool CheckName ...
- BNUOJ 7178 病毒侵袭持续中
病毒侵袭持续中 Time Limit: 1000ms Memory Limit: 32768KB This problem will be judged on HDU. Original ID: 30 ...