Search code examples
gitdvcscommand-line-interfaceblame

How do I list everyone who has ever committed to a file in Git?


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.