M
M
Mllnr2014-08-27 19:39:20
git
Mllnr, 2014-08-27 19:39:20

Is it possible to commit git hooks?

There is a git hook on pre_push. Works locally. I want it to be brought to .git/hooks/ with a new clone. Is it possible to edit .git/ in a remote github repository?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Volynkin, 2015-05-14
@nick_volynkin

1. As far as I understand, you cannot clone .git/hooks along with the repository. You have to transfer manually. Here's more about that .
2. In the repository settings on GitHub there is a Webhooks & Services section . Hooks can be configured there. And digging through trees and blobs is probably not possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question