How do you get the total number of previous commits that made changes to a file in git?
CodePudding user response:
For "The number of commits that changed a file", and assuming that you have access to a linux like terminal.
You can use git log --pretty=format:"%H" <PATH> | wc