aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorBenjamin C Meyer <ben@meyerhome.net>2010-03-14 20:31:36 -0400
committerBenjamin C Meyer <ben@meyerhome.net>2010-03-16 23:24:50 -0400
commitc1214f9af53f6531063cc2b52bf5d47ea337c652 (patch)
tree1ebc2ea4430a8208041fcf2568d4d0e866facc80 /README
downloadgit-hooks-c1214f9af53f6531063cc2b52bf5d47ea337c652.tar.gz
git-hooks-c1214f9af53f6531063cc2b52bf5d47ea337c652.tar.bz2
Initial commit
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
Diffstat (limited to 'README')
-rw-r--r--README30
1 files changed, 30 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..2190287
--- /dev/null
+++ b/README
@@ -0,0 +1,30 @@
+git-hooks - A tool to manage Git hooks for multiple git repositories.
+
+Hooks can be very powerful and useful. Some hooks that can be found include:
+
+- Spell check the commit message.
+- Check that the code builds.
+- Verify that any new files contain a copyright with the current year in it.
+
+Hooks can also be very project specific such as:
+
+- Verify that any new code follows the coding style (this is always different)
+
+or very people specific such as:
+
+- Don't allow me to push after 1am in case I break something.
+- Don't let me commit between 9-5 for projects in ~/personal/ as I shouldn't be working on them.
+
+git-hooks provide a way to manage and share your hooks by allowing for the installation of hooks in three locations:
+ - User hooks that are installed in ~/.git_hooks/
+ - Project hooks that are installed in the git_hooks directory of each project
+ - Global hooks that are specified with the environment variable GLOBAL_GIT_HOOKS.
+
+When GLOBAL_GIT_HOOKS is not set it defaults to the git-hooks /contrib/ folder.
+Multiple global hooks directories can be specified by using a space between them.
+
+-- Install
+
+Clone the git-hooks repository and add it to your path.
+
+Inside a project's directory run 'git hooks --install' to change that projects git hooks (which defaults to doing nothing) to use git-hooks hooks.