nerdexam
Microsoft

GH-900 · Question #3

Pull requests can only be created between two branches that are:

The correct answer is D. Different. A pull request (PR) is a mechanism to propose merging changes from one branch into another. By definition, a PR requires two distinct branches - a source branch (containing changes) and a target branch (where changes will be merged). Creating a PR from a branch into itself is…

Collaboration Features

Question

Pull requests can only be created between two branches that are:

Options

  • AAuthored by the same user.
  • BAuthored by different users.
  • CThe same.
  • DDifferent.

How the community answered

(46 responses)
  • B
    2% (1)
  • C
    2% (1)
  • D
    96% (44)

Explanation

A pull request (PR) is a mechanism to propose merging changes from one branch into another. By definition, a PR requires two distinct branches - a source branch (containing changes) and a target branch (where changes will be merged). Creating a PR from a branch into itself is not possible because there would be no diff to review. The identity or authorship of the contributors is irrelevant to whether a PR can be created.

Topics

#Pull Requests#Branches#Code Merging#Version Control

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice