awesome-git-hooks

😎 A collection of awesome Git Hooks
授权协议 CC0-1.0 License
开发语言 SHELL
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 班建义
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Awesome Git Hooks

A curated list of awesome Git hooks

Git Hooks are scripts that run automatically every time a particular event occurs in a Git repository.

Contents

Useful Git Hooks scripts

  • pre-commit - This hook is called before obtaining the proposed commit message.
  • prepare-commit-msg - Called after receiving the default commit message, just prior to firing up the commit message editor.
  • pre-receive - This is called on the remote repo just before updating the pushed refs.
  • commit-msg - Can be used to adjust the message after it has been edited in order to ensure conformity to a standard or to reject based on any criteria.
  • pre-push - Called prior to a push to a remote. In addition to the parameters, additional information, separated by a space is passed in through stdin in the form of <local ref> <local sha1> <remote ref> <remote sha1>.
  • pre-auto-gc - Is used to do some checks before automatically cleaning repos.
  • pre-rebase - Called when rebasing a branch. Mainly used to halt the rebase if it is not desirable.
  • applypatch-msg - Can edit the commit message file and is often used to verify or actively format a patch's message to a project's standards.
  • post-receive - This is run on the remote when pushing after the all refs have been updated. It does not take parameters, but receives info through stdin in the form of <old-value> <new-value> <ref-name>.
  • post-rewrite - This is called when git commands are rewriting already committed data.

Tools

  • Husky - Git hooks made easy.
  • Komondor - Git Hooks for Swift projects.
  • Quickhook - Faster Git hook (pre-commit, etc.) runner.
  • git-hooks - A tool to manage project, user, and global Git hooks.
  • overcommit - A fully configurable and extendable Git hook manager.
  • Grunt GitHooks - Setup, manage and update your hooks with Grunt. Can be used with all languages, supports templates.
  • Autohook - A very, very small Git hook manager with focus on automation.
  • Githooks - Auto-install Git hook, that supports hooks in any language checked into Git and also shared repos.
  • Hooks - A command line git hook management tool.
  • Lefthook - Fast and powerful Git hooks manager for any type of projects.
  • pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.

Projects

  • Lolcommits - Takes a snapshot with your webcam every time you git commit code, and archives a lolcat style image with it.
  • Podmena - Enhance your commit messages adding random emoji to it.
  • Git Hooks Manager - A tool to manage project, user, and global Git hooks for multiple Git repositories.
  • Git::Hooks - A framework for implementing Git (and Gerrit) hooks.
  • git-pre-commit-hook - Hook that blocks bad commits. Useful for Python-development.
  • App::GitHooks - A modular and easy to configure git hooks framework, supporting many plugins.
  • Jig - A pre-commit hook on steroids.
  • GitPHPHooks - Write your hooks in PHP, manage and organize them on a task and project level. Has an additional Hooks library on GitHub.
  • git-hooks-php - Git hooks for PHP based projects.
  • commandbox-githooks - Git hooks for CommandBox CFML based projects.
  • hooks4git - A simple, flexible and language agnostic git hook management approach.
  • Commit Colors - See a color swatch in your terminal every time you author a commit.

Articles

Video Tutorials

Support

If you have a question, find a bug, or just want to say hi, please open an issue on GitHub. If you want to contribute, please read the guide.

License

CC0

To the extent possible under law, Islam Temirbek has waived all copyright and related or neighboring rights to this work.

  • layout: post title: “左中右三栏布局” categories: 工具说明 tags: git excerpt: 这篇是讲解git指令的文章。 git pull报错:Please, commit your changes or stash them before you can merge., 解决1: 放弃本地修改,直接覆盖之,git reset --hard git pull

  • git 项目类型 css For one of my recent projects, I've decided to use Stylus.  I'm accustomed to using Sass but that would require adding Ruby to our stack -- Stylus is Node.js-based, and since I'm already

 相关资料
  • 具备基本工程素养的同学都会注重编码规范,而代码风格检查(Code Linting,简称 Lint)是保障代码规范一致性的重要手段。 使用 Lint 会有什么好处呢?在我看来至少具有如下 3 点: 更少的 Bug 更高的开发效率,Lint 很容易发现低级的、显而易见的错误 更高的可读性 很多时候我们lint的校验是放在持续集成阶段,大概流程如下: 代码提交 --> 跑 CI 发现问题(远程) -->

  • 钩子(hooks)是一些在$GIT-DIR/hooks目录的脚本, 在被特定的事件(certain points)触发后被调用。当git init命令被调用后, 一些非常有用的示例钩子脚本被拷到新仓库的hooks目录中; 但是在默认情况下它们是不生效的。 把这些钩子文件的".sample"文件名后缀去掉就可以使它们生效。 applypatch-msg GIT_DIR/hooks/applypatc

  • Awesome git addons A curated list of add-ons that extend/enhance the git CLI. $ git blaSomething awesome happens! “You don’t have to know everything. You simply need to know where to find it when nece

  • Angular 2应用程序遍历整个流程集,或者从应用程序的启动到结束都有一个生命周期。 下图显示了Angular 2应用程序生命周期中的整个过程。 以下是每个生命周期钩子的描述。 ngOnChanges - 当数据绑定属性的值更改时,将调用此方法。 ngOnInit - 只要在Angular首次显示数据绑定属性后初始化指令/组件,就会调用此方法。 ngDoCheck - 用于检测并对Angular

  • 常用 Hooks Hooks 是 Rax 1.0 新增的特性,它可以让函数组件(Function Component)使用状态和生命周期。Rax 在实现上遵循了 React Hooks 的标准。 Rax 转小程序链路目前支持的 Hooks 有以下几种: useState useEffect useReducer useContext useRef 关于以上 Hooks 的具体使用方式,可以参考这里

  • Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. Hook scripts could be defined by addin