Home Microsoft AZ-400: DevOps Engineer AZ-400 – Question 271

AZ-400 – Question 271

0
711
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.

Cloud Tech
Cloud Tech is a small, independent team that writes free practice questions for Microsoft Azure, AWS and CompTIA certification exams. We write every question ourselves against the current official exam outline, explain why each option is right or wrong, link to the vendor's documentation, and update or archive sets when an exam changes. Spotted a mistake? Email [email protected].