fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,14 @@
---
title: Git Hooks
---
## Git Hooks
Git Hooks are scripts located in the `.git/hooks/` directory of a git repository. These scripts run after being triggered by different stages in the version control process.
### Samples
In this directory are a handful of sample scripts, such as `pre-commit.sample`. This particular sample runs every time a user runs `git commit`. If the hook script exits with a status other than 0, then the commit stops.
### Documentation
- [Documentation for Git Hooks](https://git-scm.com/docs/githooks)
- [Atlassian Tutorial on Git Hooks](https://www.atlassian.com/git/tutorials/git-hooks)
- [Git Hooks Guide](http://githooks.com/)