Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add author info onto git log --oneline --graph

Tags:

git

git log --oneline --graph

enter image description here

How could I add author info to the results?

like image 875
zzzgoo Avatar asked Nov 02 '25 03:11

zzzgoo


1 Answers

You would need to use pretty-format instead of oneline:

git log --pretty=format:"%h%x09%an%x09%d%x09%s" --graph

That %an adds the author.

like image 109
VonC Avatar answered Nov 04 '25 18:11

VonC