This question is closely related to List all commits for a specific file however it is different. I want to find out which commits, across all branches, had
Command line
I would highly recommend to add the graph option with git log:
git log --graph --all --
Gui
Gitk is an pretty old tool and not always installed, I recommend a different free tool like e.g. SourceTree: