https://github.com/beace/git-hooks
nodejs git hooks
https://github.com/beace/git-hooks
Last synced: 9 months ago
JSON representation
nodejs git hooks
- Host: GitHub
- URL: https://github.com/beace/git-hooks
- Owner: Beace
- Created: 2019-04-11T10:46:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-18T07:19:43.000Z (over 6 years ago)
- Last Synced: 2025-02-05T07:31:15.786Z (11 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-hooks
nodejs git hooks
## Usage
Copy `commit-msg` file to `.git/hooks/commit-msg`
```bash
$ chmod 777 .git/hooks/commit-msg
$ git add file
$ git commmit -m "message"
```
## ERROR
> 你的 commit message 是: 直太短了,我有点忍受不了。请尽可能详尽地描述你解决的问题
> ❌ ERROR: 不合法的 commit message, 请遵守 commit message 提交规范。 请仔细阅读规范:https://www.conventionalcommits.org/en/v1.0.0-beta.3/
## SUCCESS
> 😁 SUCCESS: 太赞了,commit message 通过了检查
> 1 file changed, 1 insertion(+), 1 deletion(-)