I want to do something like:
if [[ git status &> /dev/null ]]; then echo "is a git repo"; else echo "is not a git repo"; fi
except I don't know how to check the exit status. How do I fix this?