Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Hudson hudson155

View GitHub Profile
@hudson155
hudson155 / git-check
Created Jan 25, 2018
Check all repos for cleanliness
View git-check
#!/usr/bin/env bash
set -e
# List repositories
repos=$(find . -name ".git" | sed 's/^\.\/\(.*\)\/\.git$/\1/')
# Find longest repository name
longestName=0
while read -r repo; do
nameLength=${#repo}
You can’t perform that action at this time.