I need to get the report of all commits that the author did. So far, I have the script that wraps the following command:
git log --pretty=format:\"%ad:%an:%
Instead of --all you may want to use --branches, since --all also includes refs/tags and refs/remotes.
--all
--branches
refs/tags
refs/remotes
Your command is right, since you use the --all switch which gives all commits from all branches. To answer the question in your comment, it works also in bare repositories.