Skip to content

Instantly share code, notes, and snippets.

@tanevanwifferen
tanevanwifferen / find_dirty_gits
Created February 26, 2020 22:33 — forked from jaz303/find_dirty_gits
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