Code Monkey home page Code Monkey logo

hooks's Introduction

Hooks

Available hooks:

  • post-checkout
  • pre-commit

Global installation

If you want to install the hooks for each new git-repo you create you can install them globally:

git clone https://github.com/sumocoders/hooks.git .
cp post-checkout ~/.git_template/hooks/post-checkout
chmod +x ~/.git_template/hooks/post-checkout
cp pre-commit ~/.git_template/hooks/pre-commit
chmod +x ~/.git_template/hooks/pre-commit

Available hooks

post-checkout

The post-checkout hook will check if you have a Procfile, and if so it will ask you if the Procfile should be executed. If there is no Procfile it will search for compass-files and compile them.

Installation

curl -O https://raw.githubusercontent.com/sumocoders/hooks/master/post-checkout
mv pre-commit .git/hooks/post-checkout
chmod +x .git/hooks/post-checkout

pre-commit

The pre-commit hook will check the files that will be commited, the checks are managed in our sumo hook check commando.

Dependencies

This hook has some dependencies:

Installation

curl -O https://raw.githubusercontent.com/sumocoders/hooks/master/pre-commit
mv pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

hooks's People

Contributors

tijsverkoyen avatar woutersioen avatar

Watchers

James Cloos avatar  avatar

Forkers

woutersioen

hooks's Issues

Problem run with initial commit

> denys/planningstool.dev (master*)$ gc -m "Initial commit"
fatal: Needed a single revision
fatal: bad revision 'HEAD'
fatal: bad revision 'HEAD'
fatal: Needed a single revision
You do not have the initial commit yet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.