Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何配置 git在新的 1.6 后 git 存储库中默认不使其可执行?.git/hooks/*.sample
.git/hooks/*.sample
我无权:
$ chmod -x /usr/share/git-core/templates/hooks/*
谢谢你。
/usr/share/git-core/templates/通过复制到主目录中的 somwhere来创建自己的模板目录。添加到您的~/.gitconfig:
/usr/share/git-core/templates/
~/.gitconfig
[init] templatedir = /path/to/my/templates
在您自己的副本中,您应该能够根据需要更改权限。