package
0.0.0-20190806085950-af561f6ff7a1
Repository: https://github.com/kylebanks/go-kit.git
Documentation: pkg.go.dev

# README

git

-- import "github.com/KyleBanks/go-kit/git/"

Package git provides git source control functionality.

Usage

func InstallPreCommitHook

func InstallPreCommitHook(hook string, path string) error

InstallPreCommitHook takes a string to set as the pre-commit git hook for the .git directory specified by the path provided.

The path should be to the parent of the .git directory. For example: /src/github.com/KyleBanks/go-kit

# Functions

InstallPreCommitHook takes a string to set as the pre-commit git hook for the .git directory specified by the path provided.