簡體   English   中英

Git命令顯示作者,注釋和修改的行

[英]Git command to show author, comment and lines modified

我正在使用git命令: git log --graph --decorate --abbrev-commit --all --pretty --oneline 我喜歡它給我的格式,但是我缺少很多信息,我應該如何包括作者和修改的行/文件?

謝謝

這樣會更好看

git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --shortstat

嘗試這個:

git log --graph --shortstat --abbrev-commit --date=short --pretty=format:'%h [%an] [%ad] %s'

我使用以下

git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM