git命令报错:
fatal: not a git repository (or any of the parent directories): .git husky - git command not found, skipping install

报错原因:
没有初始化git本地版本管理仓库,在打开文件的子目录层级中不包含.git文件,所以无法执行git命令。

解决方案:
执行git初始化 ,进行初始化

git init

查看其状态

git status

参考:执行git命令报错:fatal: not a git repository (or any of the parent directories): .git

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐