What is the primary purpose of creating a new branch in the GitHub flow?
A.
To create a backup of the main branch
B.
To capture information about an issue
C.
To experiment with new features or fixes
D.
To incorporate changes from a review
The Answer Is:
C
This question includes an explanation.
Explanation:
In GitHub Flow, creating a new branch is a key step in the development process that allows for isolated development of new features or fixes without affecting the main codebase.
Experimenting with New Features or Fixes:
Option C is correct. The primary purpose of creating a new branch in the GitHub flow is to provide a safe space to experiment with new features or fixes. This allows developers to work on changes independently and only merge them into the main branch after they have been reviewed and approved.
Incorrect Options:
Option A (To create a backup of the main branch) is incorrect because branches are not typically used for backups; they are for active development.
Option B (To capture information about an issue) is incorrect because issues are tracked separately; branches are for code changes.
Option D (To incorporate changes from a review) is incorrect because incorporating changes is done during the pull request process, not when creating a branch.
[References:, GitHub Docs: GitHub Flow, , , ]
GH-900 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"