AZ-400 – Question 271

You are using GitHub as a source code repository.

You create a client-side Git hook on the commit-msg event. The hook requires that each commit message contain a custom work item tag.
You need to make a commit that does not have a work item tag.

Which git commit parameter should you use?

A. –squash
B. –no-verify
C. –message ”
D. –no-post-rewrite

Correct Answer: B 

The commit-msg hook is invoked by git-commit and git-merge, and can be bypassed with the –no-verify option.