john-science / john-science.github.io

A Blog of Minor Obsessions
http://john-science.github.io/
Apache License 2.0
3 stars 4 forks source link

Finding the Loneliest/Largest Git Files #88

Closed john-science closed 5 years ago

john-science commented 6 years ago

Just make a quick post about the fun little Git tool you created today.

john-science commented 6 years ago

Actually, you have two fun little Git tools now. And both have paid dividends already.

john-science commented 5 years ago

Do I / Should I enforce running from the head folder?

# make sure we're at the root of git repo
if [ ! -d .git ]; then
    echo "Error: must run this script from the root of a git repository"
    exit 1
fi