I recommend to look into git log --help and git rev-list --help .

I just created 2 scripts to list commits from Git repositories. It’s more in the score of an alias actually, so nothing comprehensive here. If you have some one-liners, alias or scripts for commits listing, please share here. The link of this post goes to the git log documentation. I’ll share mine in the comments too rather than in the post.

  • atzanteol@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 days ago

    I normally dislike aliases but this one I can’t live without:

    alias.lg=log --graph --date=iso-local --pretty=format:'%Cred%h%Creset - %cn:%C(auto)%d%Creset %s %Cgreen(%cd)%Creset' --abbrev-commit