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

[复制链接]
发表于 2026-4-24 09:35:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
git下令报错:
fatal: not a git repository (or any of the parent directories): .git husky - git command not found, skipping install
报错缘故原由:
没有初始化git本地版本管理堆栈,在打开文件的子目次层级中不包罗.git文件,以是无法实行git下令。
办理方案:
实行git初始化 ,举行初始化
  1. git init
复制代码
查察其状态
  1. git status
复制代码
参考:实行git下令报错:fatal: not a git repository (or any of the parent directories): .git
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表