A
A
Alexey Yarkov2016-01-20 20:12:21
Python
Alexey Yarkov, 2016-01-20 20:12:21

How to use hooks in git?

I know that there are hooks in GIT, but I have never used them. How can I make it so that before doing git add . one .py script executed? Needed to automatically delete unnecessary temporary files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-01-20
@yarkov

https: //git-scm.com/book/en/v2/Customizing-Git-Git
...
task, you need to create a pre-commit hook and remember to make it executable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question