ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 51 - AZ-400 discussion

Report
Export

You are using GitHub as a source code repository.

You create a client-side get 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 get commit parameter should you use?

A.
--squash
Answers
A.
--squash
B.
--no-verify
Answers
B.
--no-verify
C.
--message ''
Answers
C.
--message ''
D.
--no-post-rewrite
Answers
D.
--no-post-rewrite
Suggested 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

asked 02/10/2024
Sean Frenette
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first