cloc

Count, and compute differences of, lines of source code and comments. More information: https://github.com/AlDanial/cloc.

cloc path/to/directory

cloc --progress=1 path/to/directory

cloc --diff path/to/directory/one path/to/directory/two

cloc --vcs git path/to/directory

cloc --by-file path/to/directory