Skip to content

Instantly share code, notes, and snippets.

View Melkor333's full-sized avatar

Samuel Hierholzer Melkor333

View GitHub Profile
@jaz303
jaz303 / find_dirty_gits
Created October 21, 2013 19:02
find all dirty git repos under the current working directory
#!/bin/bash
for dir in $(find . -name '.git' -type d)
do
dir=$(dirname $dir)
cd $dir
STATE=""
if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then