Skip to content

Instantly share code, notes, and snippets.

View alonn24's full-sized avatar

Alon alonn24

View GitHub Profile
@alonn24
alonn24 / hook-do-not-commit
Last active November 22, 2016 19:18 — forked from samhemelryk/pre-commit
A git pre-commit hook example.
#!/bin/bash
#
# This pre-commit hook checks that you havn't left and DONOTCOMMIT tokens in
# your code when you go to commit.
#
# To use this script copy it to .git/hooks/pre-commit and make it executable.
#
# This is provided just as an example of how to use a pre-commit hook to
# catch nasties in your code.