我正在为zsh中的Git管理编写一系列脚本.
如何检查当前目录是否是Git存储库?(当我不在Git仓库中时,我不想执行一堆命令并得到一堆fatal: Not a git repository响应).
fatal: Not a git repository
git zsh
git ×1
zsh ×1