【发布时间】:2019-09-27 20:16:45
【问题描述】:
默认情况下,在 git repo root 中运行时,它看起来是空的:
git config core.hooksPath
如果我们将 git config core.hooksPath 更改为 git config core.hooksPath myhooks,我的问题是 - 我们如何将其更改回默认值?我们应该取消设置值(如何?),还是应该将其设置为.git/hooks,如git config core.hooksPath .git/hooks?
【问题讨论】:
-
你试过
git config --unset core.hooksPath吗? -
确定未设置可能会起作用,如果未设置,则 git 将默认为 .git/hooks
-
您也可以在
~/.gitconfig中删除[core]下的自定义设置。
标签: git githooks git-config