exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 373 discussion

Actual exam question from Cisco's 200-901
Question #: 373
Topic #: 1
[All 200-901 Questions]

A developer is working on a new feature in a branch named 'newfeat123456789' and the current working primary branch is named 'prim987654321'. The developer requires a merge commit during a fast forward merge for record-keeping purposes. Which Git command must be used?

  • A. git merge --no-ff newfeat123456789
  • B. git commit --no-ff newfeat123456789
  • C. git add --commit-ff newfeat123456789
  • D. git reset --commit-ff newfeat123456789
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Woonesuf
8 months, 4 weeks ago
Selected Answer: A
In the event that you require a merge commit during a fast forward merge for record keeping purposes you can execute git merge with the --no-ff option. This command merges the specified branch into the current branch, but always generates a merge commit (even if it was a fast-forward merge). This is useful for documenting all merges that occur in your repository. Source: https://www.atlassian.com/git/tutorials/using-branches/git-merge
upvoted 4 times
Woonesuf
8 months, 2 weeks ago
Additional Resource: https://blog.developer.atlassian.com/pull-request-merge-strategies-the-great-debate/
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago