How do I list everyone who has ever committed to a file in Git?
-
25-09-2019 - |
Question
I want to get a complete list of everyone who has ever committed to a file, is there a command (blame with some arguments, maybe) do that nicely?
Thanks
Solution
If you are asking about all authors of commits touching given file, then
git shortlog --numbered --summary HEAD --follow <filename>
would be a solution.
Please note however thet the --follow
option doesn't always work correctly acros renames in more complicated (less linear) history.
OTHER TIPS
git shortlog -se filename
Try gitk filename
or git whatchanged -p filename
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow