Open tquid opened 2 years ago
Hi @tquid!
Commitizen (together with this adapter) helps you write commit messages during a commit. In other words it replaces/wraps git commit
and adds new commits to the git history. In practical terms this is what happens when you use commitizen:
git commit -m ${MESSAGE}
where MESSAGE
is the message generated in step 1.What commitizen does not do:
When you do a git merge, you add a commit completely without using commitizen. You are not using the tool wrong, you are just not using the tool at all. The same goes for if you would run git commit -m "..."
(if husky was not involved).
It is difficult to suggest a solution for your specific team, as it differs a lot. But here are some workflows that I have seen:
I hope this answered some of your questions. If your team needs more training in Git or you need a review of your Git-workflows I provide those services.
Hi, when devs at my outfit merge a branch into the working branch, they get the commitizen prompts as expected, but they end up with
Merge branch <such-and-so> into <working branch>
as the commit message anyway, obviating effort put into satisfying the interactive commit.Is there some configuration I am doing incorrectly? I'm using Husky, if it matters. Here is the Husky config for
prepare-commit-msg
: