Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikhailsidorov/husky-prepare-commit-msg-example

Prepend branch name to commit message using husky and prepare-commit-msg hook
https://github.com/mikhailsidorov/husky-prepare-commit-msg-example

example git git-hooks husky node npm prepare-commit-msg

Last synced: 2 days ago
JSON representation

Prepend branch name to commit message using husky and prepare-commit-msg hook

Awesome Lists containing this project

README

        

# Husky prepare-commit-msg example

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

## Requirements

* bash

## Run

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

Commit message will be `issue-123 My new commit`