Skip to content

Instantly share code, notes, and snippets.

@yishn
Last active August 20, 2017 23:10
Show Gist options
  • Save yishn/86e2c465f076a1f3fe469512e6c64455 to your computer and use it in GitHub Desktop.
Save yishn/86e2c465f076a1f3fe469512e6c64455 to your computer and use it in GitHub Desktop.
Count number of lines of code
git diff --stat 4b825dc642cb6eb9a060e54bf8d69288fbee4904
% This shows the differences from the empty tree to your current working tree.
% Which happens to count all lines in your current working tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment