Files
freeCodeCamp/guide/russian/git/git-hooks/index.md
2018-10-16 21:32:40 +05:30

17 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Git Hooks
localeTitle: Git Hooks
---
## Git Hooks
Git Hooks - это скрипты, расположенные в каталоге `.git/hooks/` git-репозитория. Эти сценарии запускаются после запуска на разных этапах процесса управления версиями.
### образцы
В этом каталоге есть несколько примеров сценариев, например `pre-commit.sample` . Этот конкретный образец запускается каждый раз, когда пользователь запускает `git commit` . Если сценарий крюка выходит со статусом, отличным от 0, то фиксация прекращается.
### Документация
* [Документация для Git Hooks](https://git-scm.com/docs/githooks)
* [Атласский учебник по Git Hooks](https://www.atlassian.com/git/tutorials/git-hooks)
* [Руководство Git Hooks](http://githooks.com/)