If I do git log, is there any parameter I could specify to be able to tell from the output which branch every commit belongs to?
Edit: to clarify, I und
With git log you already get all the commits from the current branch you are on.
If you want to see commits from merged branches you can use
$ git log --pretty=oneline --graph
To create a log tree and see what merged branches a commit stems from.
--graph will make the commit tree and
--pretty=oneline will make a one line visualization for every commit
To add branches (as refs) to the log:
$ git log --all --source --pretty=oneline --graph
To display branches with commits:
$ git show-branch