gitstats
gitstats copied to clipboard
Determine whether the working directory is a valid Git repository
The following command seems promising:
git rev-parse --is-inside-work-tree
From http://stackoverflow.com/questions/2180270/check-if-current-directory-is-a-git-repository