Git Log Prettify

sunday-snippet · Apr 10, 2022 · ~1 min
Sunday Snippet #12 git log prettify
Sunday Snippet #12 git log prettify
1
2
$ git log -5 \
--pretty='format:{"shortRef": "%h", "authorDateIso": "%aI", "authorName": "%aL", "message": "%f"}'
1
2
3
4
5
{"shortRef": "da8920f5", "authorDateIso": "2022-04-04T00:47:49+00:00", "authorName": "24659468+ClavinJune", "message": "GH-Actions-CD"}
{"shortRef": "16b77e0b", "authorDateIso": "2022-04-03T20:35:22+07:00", "authorName": "24659468+ClavinJune", "message": "build-Sun-03-Apr-2022-20-35-22-0700"}
{"shortRef": "950aaea6", "authorDateIso": "2022-03-29T09:12:26+07:00", "authorName": "clavianus.juneardo", "message": "Update-main.yml"}
{"shortRef": "e4f74e7c", "authorDateIso": "2022-03-29T09:12:05+07:00", "authorName": "clavianus.juneardo", "message": "Update-main.yml"}
{"shortRef": "b16f6ca7", "authorDateIso": "2022-03-27T00:49:02+00:00", "authorName": "24659468+ClavinJune", "message": "GH-Actions-CD"}

Reference

· · ·

Love This Content?

Any kind of supports is greatly appreciated! Kindly support me via Bitcoin, Ko-fi, Trakteer, or just continue to read another content. You can write a response via Webmention and let me know the URL via Telegraph.

Drop Your Comment Below