Git show only author from commit hash? -


i can't seem figure out how print out author commit hash using git. have tried (and been trying manipulate want). how can make prints out author, specified '%n'?

git show --pretty="format:<author>%an</author>"  --name-only cf81c4a41517bdc5514d381c5309b80f5f4ca226 

you want like:

git show -s --pretty=%an cf81c4a41517bdc5514d381c5309b80f5f4ca226 

from git show:

   -s, --no-patch        suppress diff output. useful commands git show show        patch default, or cancel effect of --patch. 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -