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

I want a complete list of everyone who has ever committed the file, is there a command (maybe blame with some arguments)?

thanks

+2


source to share


3 answers


If you are asking about all the authors who comment on a given file,

git shortlog --numbered --summary HEAD --follow <filename>

      



would be the solution.

Note, however, that the parameter --follow

does not always work correctly, acros renames a more complex (less linear) history.

+1


source


git shortlog -se filename

      



+2


source


Try gitk filename

or git whatchanged -p filename

.

+1


source







All Articles