CocoaPods plugin that syncs git hooks between team members
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
VERSION
cocoapods-githooks.gemspec
githooks-update.sh

README.md

cocoapods-githooks

GitHooks is a simple CocoaPods plugin that syncs git hooks between team members. Create .git-hooks directory just beside your .git folder. Place all shared hooks into .git-hooks and commit to your repository. GitHooks plugin will copy shared hooks into .git/hooks directory and make them executable every time you running 'pod install' or 'pod update'.

Installation

$ gem install cocoapods-githooks

Usage

  1. Create '.git-hooks' directory in root of your project
  2. Add git hooks scripts into '.git-hooks'. You can leave file extension for Shell Scripts and don't need to worry about making them exetutable.
  3. Require 'cocoapods-githooks' plugin in your Podfile
plugin 'cocoapods-githooks'
  1. Run
$ pod install 

or

$ pod update

or

$ pod githooks

to sync git hooks.