The nearest directory at or above startPath that holds a .git entry (a directory in a normal clone, a file in a worktree), or null when there is none. Symlinks are resolved first.
startPath
.git
A file or directory; it need not exist yet.
The nearest directory at or above
startPaththat holds a.gitentry (a directory in a normal clone, a file in a worktree), or null when there is none. Symlinks are resolved first.