Question
A cloud architect attempts to modify a protected branch but is unable to do so. The architect receives an error indicating the action cannot be completed. Which of the following should the architect try instead?
- A. Adding a new remote
- B. Creating a pull request Correct
- C. Merging the branch
- D. Rebasing the branch
Explanation
Protected branches block direct pushes, so changes must be made on another branch and proposed through a pull request (merge request), where the required reviews and status checks run before the change is merged. Adding a remote does not change the branch's protection, and merging or rebasing directly into the protected branch is exactly the kind of direct change that protection rules reject.