Checks to see if the given path is inside a git repo. It does this by checking for the '.git' directory in the given directory and every parent directory.
The path to the root of the git repo, or null if not inside a git repo.
See Implementation
Checks to see if the given path is inside a git repo. It does this by checking for the '.git' directory in the given directory and every parent directory.