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

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

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(-)