## 注意事项 如果 repo 参数是猜测出来的,在进行下一步操作之前,需要向用户确认。 ## 参考 定位 Git 仓库的根目录: ```sh git rev-parse --show-toplevel ``` 获取 origin 的地址: ```sh git remote get-url origin ``` Node.js 调用 Git 命令: https://github.com/typicode/husky/blob/main/src/index.ts#L9-L10