If you are interested in determining the number of lines of code written in your GIT project, the following bash snippet can prove to be quite useful.
Save this script as git-summary
in your system path. GIT will automatically recognize it as a subcommand, enabling you to use git summary
without configuring an alias in your GIT settings.
Dont forget to execute chmod +x /your/path/git-summary{bash}
to make it executable.
Here is a sample output:
You can also apply filters based on time, author, branch, and more:
Reference: https://stackoverflow.com/a/61945239/302974