If command run from outside a .git directory tree it throws an abort error.
Optional
The directory to check.
If command run from outside a .git directory tree it throws an abort error.