Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AlbertSuarez/86c3d820383d0043303795a1f6e56183 to your computer and use it in GitHub Desktop.
Save AlbertSuarez/86c3d820383d0043303795a1f6e56183 to your computer and use it in GitHub Desktop.
Get amount of code lines from a GitHub repository
#!/usr/bin/env bash
git clone --depth 1 https://github.com/GITHUB_USER/GITHUB_REPOSITORY.git
cloc GITHUB_REPOSITORY
rm -rf GITHUB_REPOSITORY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment