shareable and zero-conf git Messages format to be used across a dev team
Read this in other languages: English, Español.
Shareable and zero-conf git Messages format to be used across a dev team using native GIT hooks
OS X, Linux & Windows:
npm install
NPM will install husky
and commitlint
npm packages. They are responsible for
installing and triggering custom GIT hooks.
Inside the package.json
file you will find the configuration for husky.
For this case we are using commit-msg
and post-merge
GIT hooks.
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"post-merge": "npm install"
}
}
For more examples and usage, please refer to https://moisesbm.wordpress.com/2018/09/15/git-commit-messages-shareable-format/.
Moisés Belchín
@moises_b_m
https://github.com/mbelchin/
Distributed under the MIT license. See LICENSE
for more information.
For a detailed explanation, please refer to: https://moisesbm.wordpress.com/2018/09/15/git-commit-messages-shareable-format/
This project was created to find a simple way to share same GIT commit messages format across a whole developers team.
If you consider some things could be improved or you know another simpler, easier configurable tools, please open a discussion thread so all of us could benefit from those improvements.
- Fork it (https://github.com/mbelchin/git-messages-format/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am '<type>(scope): add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request