All Projects → koraktor → mestral

koraktor / mestral

Licence: BSD-3-Clause License
Simple hook management for Git

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to mestral

Git Clone Init
Automatic setup of user identity (user.email / user.name) on git clone
Stars: ✭ 130 (+136.36%)
Mutual labels:  git-hooks
captain-git-hook
✅ define git hooks as scripts in your package.json
Stars: ✭ 25 (-54.55%)
Mutual labels:  git-hooks
detect-secrets
A developer-friendly secrets detection tool for CI and pre-commit hooks based on Yelp's detect-secrets
Stars: ✭ 43 (-21.82%)
Mutual labels:  git-hooks
Simple Git Hooks
A simple git hooks manager for small projects
Stars: ✭ 179 (+225.45%)
Mutual labels:  git-hooks
precommit-hook
Automatically check your python code on every commit. 🔍 ✔️
Stars: ✭ 16 (-70.91%)
Mutual labels:  git-hooks
pre-commit-hooks
git pre-commit hooks
Stars: ✭ 71 (+29.09%)
Mutual labels:  git-hooks
Wp Enforcer
Git hooks to encourage well-written WordPress.
Stars: ✭ 107 (+94.55%)
Mutual labels:  git-hooks
enforce-git-message
Enforces conventional git commit messages for git repositories
Stars: ✭ 30 (-45.45%)
Mutual labels:  git-hooks
prepare-commit-msg
Automatically prefix commit messages with the current branch issue number
Stars: ✭ 28 (-49.09%)
Mutual labels:  git-hooks
husky-elixir
🐶 Git hooks made easy
Stars: ✭ 47 (-14.55%)
Mutual labels:  git-hooks
Husky.Net
Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
Stars: ✭ 394 (+616.36%)
Mutual labels:  git-hooks
pre-commit-hooks-safety
A pre-commit hook to check your Python dependencies against safety-db
Stars: ✭ 69 (+25.45%)
Mutual labels:  git-hooks
run-if-changed
Run a command if a file changes via Git hooks
Stars: ✭ 25 (-54.55%)
Mutual labels:  git-hooks
Yarnhook
Run `yarn install`, `npm install` or `pnpm install` on git hooks automatically
Stars: ✭ 177 (+221.82%)
Mutual labels:  git-hooks
php-git-hooks
Git hooks for the local repository of the PHP project
Stars: ✭ 20 (-63.64%)
Mutual labels:  git-hooks
Git Good Commit
Git hook to help you write good commit messages, with no external dependencies.
Stars: ✭ 128 (+132.73%)
Mutual labels:  git-hooks
pre-commit-opa
Pre-commit git hooks for Open Policy Agent (OPA) and Rego development
Stars: ✭ 53 (-3.64%)
Mutual labels:  git-hooks
elixir git hooks
🪝 Add git hooks to Elixir projects
Stars: ✭ 98 (+78.18%)
Mutual labels:  git-hooks
rusty-hook
git hook manager, geared toward Rust projects
Stars: ✭ 93 (+69.09%)
Mutual labels:  git-hooks
modern-office-git-diff
An experiment in tracking and diffing versions of modern Microsoft Office files in Git.
Stars: ✭ 51 (-7.27%)
Mutual labels:  git-hooks

Mestral

Build Status Coverage Status Code Climate Dependency Status

A hook manager for Git

About

Mestral allows to easily manage your Git hooks. Combine so called hooklets to form the hooks fitting your needs.

Installation

Mestral can be installed via a simple installation script:

$ ruby -e "$(curl -fLsS https://raw.github.com/mestral/mestral/install/install.rb)"

On Unix-like system, this will install Mestral into /usr/local/mestral. On Windows, this will install Mestral into %ALLUSERSPROFILE%/Mestral. An executable called git-hooks will be put into place, so you can run Mestral using $ git hooks.

You can also clone the Git repository and symlink the executable into your $PATH. For example:

$ git clone http://github.com/mestral/mestral.git
$ ln -s mestral/bin/mestral /usr/local/bin/mestral

Additionally, you might want to add it as a command to Git, for example:

$ ln -s mestral/bin/mestral /usr/local/bin/git-hooks

Getting started

Initially, you should add a hook repository, also known as a tape.

$ mestral add-tape https://github.com/mestral/tape

After that, list the available hooklets

$ mestral list

… and enable those you like for the current Git repository:

$ mestral enable pre-commit check-whitespace

Additionally, you can execute a Git hook manually:

$ mestral execute pre-commit

License

This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License. A copy of this license can be found in the LICENSE file.

Credits

  • Sebastian Staudt – koraktor(at)gmail.com
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].