Skip to content

Commit

Permalink
More complete instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons authored Oct 24, 2024
1 parent 47112aa commit 7a7927f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/git_hooks/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This folder contains helper scripts for [Git hooks](https://www.atlassian.com/git/tutorials/git-hooks).

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.
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`.
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`.
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>`.

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

0 comments on commit 7a7927f

Please sign in to comment.