pub fn git_dir() -> Result<PathBuf>
Get the .git directory of the current repository.
Returns an error if not inside a git repository.