Checks if the given directory is the root of a git repository.
Only succeeds on directories that contain a .git folder.
.git
Git submodules or worktrees are not considered as roots.
The directory in which to check for the Git root. Defaults to the current working directory.
A promise that resolves to true if the directory is a Git root, false otherwise.
Checks if the given directory is the root of a git repository.
Only succeeds on directories that contain a
.git
folder.Git submodules or worktrees are not considered as roots.