Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
For some reason my post-received hook never executes. It's a simple two liner diagnostic script: echo "test" && touch /tmp/test. When I do git push origin master nothing happens. Does any-one know what am I doing wrong?
git push origin master
If you're using http, know that HTTP does not support hooks and you could ssh:/
Make sure that the script file itself is actually executable.
chmod ug+x .git/hooks/post-receive
Required, but never shown
8 years, 9 months ago
7 years, 4 months ago