Created
November 17, 2020 13:55
-
-
Save nhevia/c429095d9d8265e9d291cce099a24186 to your computer and use it in GitHub Desktop.
A command to show amount of lines in a git repository, excluding files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git ls-files --exclude-standard -- ':!:**/*.[pjs][npv]g' ':!:**/*.eslintrc' ':!:package-lock.json' | xargs wc -l | |
// Excludes png, jpg, svg and package.json files. | |
// For excluding other configuration files (eslint for example): ':!:**/*.eslintrc' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment