This file contains 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
// Referenced from https://gist.github.com/mandiwise/dc53cb9da00856d7cdbb | |
// List line count of all tracked files | |
$ git ls-files | xargs wc -l | |
// Match only certain file-types | |
$ git ls-files -- '*.js*' | xargs wc -l | |
// Add additional file-types to count | |
$ git ls-files -- '*.js*' '*.jsx' '*.tsx' '*.css' | xargs wc -l |