fn git_root(dir: &Path) -> Option<PathBuf>
The nearest directory at or above dir holding a .git directory or file (the CLI’s Gt).
dir
.git
Gt