How can I configure git not to make .git/hooks/*.sample executable by default in a new post-1.6 git repository?
I don’t have permission to:
$ chmod -x /usr/share/git-core/templates/hooks/*
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create your own template directory by copying
/usr/share/git-core/templates/into somwhere within your home directory. Add to your~/.gitconfig:In your own copy, you should be able to change the permissions as you would like.