Skip to content

shanezhiu/githook-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

githook 实例

简介

  • git hooks 可以使用 php, ruby, python, shell script, perlgolang 等语言编写,语言要求很宽泛

  • git hooks 是无法随着仓库上传的, 如果您想应用当前实例,请复制相关hook到项目下.git/hooks

  • 本项目当前使用shell script编写实例,后续将会补全上述语言实例

实例

Client Hooks

Committing-Workflow Hooks

  • pre-commit
  • prepare-commit-msg
  • commit-msg
  • post-commit

Email Workflow Hooks

  • applypatch-msg
  • pre-applypatch
  • post-applypatch

Other

  • pre-rebase
  • post-rewrite
  • post-checkout
  • post-merge
  • pre-push
  • pre-auto-gc

Server Hooks

  • pre-receive
  • update
  • post-receive

测试用例

  • pre-commit

  • prepare-commit-msg

  • commit-msg

  • post-commit

  • applypatch-msg

  • pre-applypatch

  • post-applypatch

  • pre-rebase

  • post-rewrite

  • post-checkout

  • post-merge

  • pre-push

  • pre-auto-gc

  • pre-receive

  • update

  • post-receive

Releases

No releases published

Packages

No packages published

Languages