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?
git log
Edit: to clarify, I und
Have you tried the "--decorate" option to git log?
I have this alias in my .gitconfig:
[alias] k = log --graph --oneline --abbrev-commit --decorate
It shows a similar graph as the one shown by gitk, with the branch names "decorated" besides the most recent commit in the branch.