pub fn git_dir(cwd: &Path) -> Result<PathBuf, Error>
Path to the .git directory of the repository containing cwd. Always returns an absolute path. Errors if cwd isn’t inside a git repository.
.git
cwd