I read a similar question about this that suggested using git log --graph --all --decorate. The problem with this is that it doesn’t display branch names for log entries that have had their branch merged and deleted long ago.
What I’m interested in is basically the exact same thing as the straight git log command, but with extra info to show me the name of the branch it was committed to and the files that were modified/added/deleted in the commit. I’d like the branch name to be available regardless of whether or not it has been deleted.
Is there any way to do this without modifying the default commit message using a template or hook?
As Andy answered – this info is not kept. If you will think about it it will become pretty clear that this information is not necessary at all. In git as in distributed VCS there is no point of knowing how another developer called his branch before the code got merged into the mainline. What is the point of knowing it? Does it really help?
As for the other part of the question you can see the list of files changed between two points in history using
or