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
Starting from
cwd, usesgit rev-parse --show-toplevelto find the root of the git repo. Throws ifcwdis not in a Git repository.