Skip to content

Instantly share code, notes, and snippets.

@rowlando
Created March 7, 2020 19:00
Show Gist options
  • Save rowlando/2225ac95317b84d04913b9c28595a333 to your computer and use it in GitHub Desktop.
Save rowlando/2225ac95317b84d04913b9c28595a333 to your computer and use it in GitHub Desktop.
Count Lines of Code in GitHub Repo
#!/usr/bin/env bash
git clone --depth 1 "$1" temp-linecount-repo &&
printf "('temp-linecount-repo' will be deleted automatically)\n\n\n" &&
cloc temp-linecount-repo &&
rm -rf temp-linecount-repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment