-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95c5560
commit adb43d5
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
# 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 issue-123 | ||
touch example.txt | ||
git add . | ||
git commit -m "My new commit" | ||
|
||
Commit message will be "issue-123 My new commit" | ||
Commit message will be `issue-123 My new commit` |