0

我关注了 Tim Pope 关于使用 git 轻松 ctags的博客文章,但它似乎不起作用。

的输出git ctags

fatal: cannot exec '.git/hooks/ctags': Permission denied

正如他所解释的那样,我已按照说明进行操作。我~/.git_template/hooks的文件夹有以下文件。

ctags  post-checkout  post-commit post-merge post-rewrite 

我尝试重新初始化存储库并提交,但似乎都没有生成 ctags。

4

1 回答 1

2

我猜你错过了一个:

chmod +x .git/hooks/ctags

在脚本上,您需要设置可执行位

于 2013-11-14T21:47:38.057 回答