Skip to content

Instantly share code, notes, and snippets.

@e4coder
Forked from mandiwise/Count lines in Git repo
Created June 10, 2025 17:08
Show Gist options
  • Save e4coder/f8321942454357acf2cb0bcdd7a27921 to your computer and use it in GitHub Desktop.
Save e4coder/f8321942454357acf2cb0bcdd7a27921 to your computer and use it in GitHub Desktop.

Revisions

  1. @mandiwise mandiwise revised this gist Jan 6, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Count lines in Git repo
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    // Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository

    # git ls-files | xargs wc -l
    $ git ls-files | xargs wc -l
  2. @mandiwise mandiwise created this gist Jan 6, 2015.
    3 changes: 3 additions & 0 deletions Count lines in Git repo
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    // Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository

    # git ls-files | xargs wc -l