If the .git directory tree is not clean (has uncommitted changes) it throws an abort error.
Optional
The directory to check.
If the .git directory tree is not clean (has uncommitted changes) it throws an abort error.