Finds the root directory of a Git repository by searching upwards from the given working directory.
It uses @simbo/is-git-repository-root to check if a directory is a Git repository root.
@simbo/is-git-repository-root
The directory from which to start searching for the Git root. Defaults to the current working directory.
A promise that resolves to the path of the Git repository root, or undefined if not found.
Finds the root directory of a Git repository by searching upwards from the given working directory.
It uses
@simbo/is-git-repository-root
to check if a directory is a Git repository root.