Starting from cwd, uses git rev-parse --show-toplevel to find the root of the git repo. Throws if cwd is not in a Git repository.
cwd
git rev-parse --show-toplevel
Generated using TypeDoc
Starting from
cwd
, usesgit rev-parse --show-toplevel
to find the root of the git repo. Throws ifcwd
is not in a Git repository.