pub fn git_common_dir(cwd: &Path) -> Result<PathBuf>
Resolve the Git common directory for the current working directory.
Returns an error if git rev-parse --git-common-dir fails.
git rev-parse --git-common-dir