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

开源 0

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

也许您对下面的内容还感兴趣: