Check to see if there are repo changes in bash

October 5, 2020
if git diff-index --quiet HEAD --; then
    echo "no changes"
else
    echo "there are changes"
fi