Git Product home page Git Product logo

localhooks's Introduction

Localhooks for scip

These git hooks help to check the correct format of commits before pushing. They need to be installed by the user for the local repository. For instructions please continue reading.

Available hooks:

  • commit-msg: checks every commit message for correct format (line length, etc.)
  • pre-commit: checks every commit for trailing whitespaces, filename format and that the files size does not exceed 50 MB

Instructions for local hooks

Hooks are scripts that run before or after certain events in Git. The commit-msg hook for example runs after the commit message is edited and checks for the correct format.

For security reasons, local hooks have to be activated manually for every single repository.

There are several ways of doing that:

  1. Run installhooks and follow the steps (this method will create links to the hooks just like method 2)

  2. Create links from .git/hooks/ in every repository to the scripts in this localhooks/ folder you like to use. example:

   cd scip/.git/hooks
   ln -s <pathto>localhooks/commit-msg
  1. Copy the contained hooks into the directory .git/hooks/ of your local repository.

localhooks's People

Contributors

fschloesser avatar mattmilten avatar ju-manns avatar pfetsch avatar svigerske avatar

Watchers

Mathieu Besançon avatar Ambros Gleixner avatar  avatar

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.