Skip to content

Instantly share code, notes, and snippets.

@mandiwise
Last active December 27, 2025 13:49
Show Gist options
  • Select an option

  • Save mandiwise/dc53cb9da00856d7cdbb to your computer and use it in GitHub Desktop.

Select an option

Save mandiwise/dc53cb9da00856d7cdbb to your computer and use it in GitHub Desktop.

Revisions

  1. 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 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