Home > Net >  Find number of previous commits that made changes to a file
Find number of previous commits that made changes to a file

Time:02-28

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

See https://www.geeksforgeeks.org/how-to-check-git-logs/

  • Related