A conventional commit is a subject line machines can sort, plus an optional body. You pick a type, optionally a scope, type a subject, and optionally a body and a breaking-change note. Type feat, scope api, subject remove endpoint, breaking change Use v2 produces feat(api)!: remove endpoint, a blank line, and BREAKING CHANGE: Use v2.
The bang is not something you type. It appears only when the breaking-change field is filled in, and that same text is repeated as the footer. An empty breaking-change field leaves the bang off. Types are the usual set: feat, fix, docs, refactor, perf, test, build, ci, chore, style, revert. A subject or a scope with a newline is rejected, and a scope may not contain parentheses, because those would break the type(scope) shape.
The page does not run git. It only formats the message you then pass to git commit. If the body is filled in, it sits between the subject and the footer, separated by blank lines.
Type feat, scope api, subject remove endpoint, breaking change Use v2. Body left empty.
feat(api)!: remove endpoint\n\nBREAKING CHANGE: Use v2
The exclamation mark and the BREAKING CHANGE footer are written from the same field, so one of them cannot be forgotten.
Only when Breaking change has text. The subject becomes type(scope)!: subject and a BREAKING CHANGE footer is added. Clearing the field removes both.
No. The subject and the scope have to be single lines, and the scope cannot contain parentheses. Put the longer explanation in Body.
No. You get the message text. git commit -m or your editor still has to record it.
The list is closed: feat, fix, docs, refactor, perf, test, build, ci, chore, style, revert. A custom type would not pass the page, which is the point if your hook checks the same list.