项目作者: mikhailsidorov

项目描述 :
Prepend branch name to commit message using husky and prepare-commit-msg hook
高级语言: Shell
项目地址: git://github.com/mikhailsidorov/husky-prepare-commit-msg-example.git
创建时间: 2020-02-13T21:05:44Z
项目社区:https://github.com/mikhailsidorov/husky-prepare-commit-msg-example

开源协议:MIT License

下载


Husky prepare-commit-msg example

Example project with prepare-commit-msg hook configured to prepend branch name to commit message automaticaly

Requirements

  • bash

Run

  1. npm install
  2. git checkout -b fix/issue-123
  3. touch example.txt
  4. git add .
  5. git commit -m "My new commit"

Commit message will be issue-123 My new commit