Skip to content

Commit 7a7927f

Browse files
authored
More complete instructions
1 parent 47112aa commit 7a7927f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/git_hooks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This folder contains helper scripts for [Git hooks](https://www.atlassian.com/git/tutorials/git-hooks).
22

3-
To create a hook, make a file inside the directory `.git/hooks/` with the name of the hook you want to set up. Do not use a file extension.
4-
For example, if you want to set up a pre-commit hook, the file should be called `pre-commit`, or if you want a pre-push hook, it should be called `pre-push`.
3+
To create a hook, make a file inside the directory `.git/hooks/` with the name of the hook you want to set up. The file names will **not** include an extension like `.md` or `.txt`.
4+
For example, if you want to set up a pre-commit hook, the file should be called `pre-commit`, or if you want a pre-push hook, it should be called `pre-push`. Assuming you're on a unix based operating system, make sure the file is executable using `chmod +x <FILE NAME>`.
55

66
Once you've created that file, put the appropriate she-bang on the first line:
77
```bash

0 commit comments

Comments
 (0)