List all commits on the current branch

git rev-list

  • List revisions (commits) in reverse chronological order.
    More information: <https://git-scm.com/docs/git-rev-list>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git rev-list {{HEAD}}

click the source code to copy install git rev-list on any operating system with command-not-found.com