Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month ago
JSON representation
Prepend branch name to commit message using husky and prepare-commit-msg hook
- Host: GitHub
- URL: https://github.com/mikhailsidorov/husky-prepare-commit-msg-example
- Owner: mikhailsidorov
- License: mit
- Created: 2020-02-13T21:05:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-20T21:12:05.000Z (over 3 years ago)
- Last Synced: 2023-02-28T21:55:45.431Z (almost 2 years ago)
- Topics: example, git, git-hooks, husky, node, npm, prepare-commit-msg
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`