pub fn is_git_repo(path: &Path) -> bool
判断路径是否为 git 仓库(存在 .git 目录或文件)。
.git
.git 文件表示该目录是一个 git 子模块的工作树。