Can you get the number of lines of code from a GitHub repository?

You can run something like

git ls-files | xargs wc -l

Which will give you the total count →

lines of code

You can also add more instructions. Like just looking at the JavaScript files.

git ls-files | grep '\.js' | xargs wc -l

Or use this handy little tool → https://line-count.herokuapp.com/

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)