Git/日志

来自康健生活
< Git
Kangkk​(留言 | 贡献)2024年2月29日 (四) 11:03的版本 (创建页面,内容为“ == log == === 查找人 === 查找单人。 {{shc|<syntaxhighlight lang="bash"> git log --online --author="kangjian"</syntaxhighlight>|$|/home/kangkk}} 查找多人。 {{shc|<syntaxhighlight lang="bash"> git log --online --author="kangjian\|lanqian"</syntaxhighlight>|$|/home/kangkk}} === 查找关键字 === {{shc|<syntaxhighlight lang="bash"> git log --online --grep="kangkk"</syntaxhighlight>|$|/home/kangkk}} === 查找文件内容信息 === {{shc|<syntaxhi…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

log

查找人

查找单人。

/home/kangkk
git log --online --author="kangjian"

查找多人。

/home/kangkk
git log --online --author="kangjian\|lanqian"

查找关键字

/home/kangkk
git log --online --grep="kangkk"

查找文件内容信息

/home/kangkk
git log -S "75cdn"

查找时间区间

查找自2021年2月24日以后,早上10点到下午8点的记录。

/home/kangkk
git log --online --since="10am" --until="8pm" --after="2021-02-24"

查看文件

/home/kangkk
git log src/a.js

查看文件改动记录。

/home/kangkk
git log -p src/a.js

reflog

/home/kangkk
git reflog