Checks if the repository has uncommitted changes.
Optional
True if the repo is dirty, false otherwise.
Error if git command fails.
Checks if the repository has uncommitted changes.