Checks if the repository is clean and exits with code 1 if it is dirty. Shows git status and diff output before exiting.
Optional
Checks if the repository is clean and exits with code 1 if it is dirty. Shows git status and diff output before exiting.