git-hooks

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2014 License: MIT Imports: 13 Imported by: 0

README

git-hooks

Hook manager

Rewritten from icefox/git-hooks

Install

Download binary and place it in your PATH

Or manually:

go get github.com/git-hooks/git-hooks

Usage

NAME:
   git-hooks - tool to manage project, user, and global Git hooks

USAGE:
   git-hooks [global options] command [command options] [arguments...]

VERSION:
   0.1.0

COMMANDS:
   install, i		Replace existing hooks in this repository with a call to git hooks run [hook].  Move old hooks directory to hooks.old
   uninstall		Remove existing hooks in this repository and rename hooks.old back to hooks
   install-global	Create a template .git directory that that will be used whenever a git repository is created or cloned that will remind the user to install git-hooks
   uninstall-global	Turn off the global .git directory template that has the reminder
   run			run <cmd> Run the hooks for <cmd> (such as pre-commit)
   help, h		Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h		show help
   --version, -v	print the version

Documentation

Overview

Terminology

Example git-hooks directory layout:

githooks
├── commit-msg
│   └── signed-off-by
└── pre-commit
	└── bsd

trigger: pre-commit hook: bsd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL