git_is_working_tree_clean This script will check whether the Git working tree in the given directory ($PWD if not given) is clean. Usage $ scripts/git/git_is_working_tree_clean.sh $ echo $? 0 the Git working tree of the given directory is clean 1 the Git working tree of the given directory is dirty 2 the given directory is not a Git repository git_ignore_all GitHub