Which git commit parameter should you use?

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

Answer: B

Explanation:

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

verify option.

Reference: https://git-scm.com/docs/githooks

Latest AZ-400 Dumps Valid Version with 289 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments