achobeta team website backend service
- execute command in the root directory
git config core.hooksPath .githooks
chmod -R -x .githooks
- The purpose of the above command is to trigger a hook when submitting a commit to confirm whether the commit message is correct.
- Read the development specifications below
we must confirm:
-
Branch naming should include a name to identify the person responsible.
-
Branch naming must clearly express what problem the branch is working on.
so branch naming must be standardizedSo branch naming must be standardized.
<type>-<name>-<description>
for example:
- if it is a branch to develop new functions, the naming convention is as follows
feature-<name>-<feature description>
e.g.: feature-jett-dev_log_system
- if is fix bugs:
bugfix-<name>-<bug name>
e.g.: bugfix-jett-login_error
and other types:
hotfix
、release
...
commit message should be written as clearly as possible, and each commit should only do one thing.
<type>(<scope>): <subject>
e.g.: feat: add new api
or: feat(common): add new api
feat: feature
fix: fix bug
docs: documentation
test: add test function
style: format (changes that do not affect code operation).
refactor: Refactoring (that is, code changes that are not new features or bug fixes).
No period or punctuation at the end
e.g.
feat: add new feature
fix: fix a bug