Finds the .git directory by looking in the specified directory and its parents.
The directory to start searching from.
Optional
Options for finding the git directory.
The path to the .git directory, or null if not found.
Finds the .git directory by looking in the specified directory and its parents.