How do I display all commits I've made on all branches?

git, git-log

Solution

Using gitk produces a reasonably good result i think.

gitk --all --author="username"

But again, the commits are not owned by a particular branch so when viewing all branches and filtering out your commits you might see a ton of branches you never even knew existed, depending on the complexity of the repository. For a smaller repo i would imagine this gets quite readable.

I guess the git log counterpart would be something like

git log --oneline --decorate --all --author="username"

I don't find it as readable for some reason.

Problem

I'd like to see all the commits I've made on all branches, along with what branch each commit was made on. I've tried `git log --branches --author="My Name"`, but that doesn't tell me what branches I've made each commit on.

Original source