AZ-400 · Question #208
Case Study 3 - Woodgrove Bank Overview General Overview Woodgrove Bank is a financial services company that has a main office in the United Kingdom. Technical Requirements and Planned Changes Planned
The correct answer is A. git rebase. The commit history of the POC branch must replace the history of the default branch. Rebasing is the process of moving or combining a sequence of commits to a new base commit. Rebasing is most useful and easily visualized in the context of a feature branching workflow. The genera
Question
Exhibit
Options
- Agit rebase
- Bgit merge --squash
- Cgit push
- Dgit merge --allow-unrelated-histories
How the community answered
(50 responses)- A72% (36)
- B16% (8)
- C8% (4)
- D4% (2)
Explanation
The commit history of the POC branch must replace the history of the default branch. Rebasing is the process of moving or combining a sequence of commits to a new base commit. Rebasing is most useful and easily visualized in the context of a feature branching workflow. The general process can be visualized as the following: Note: The primary reason for rebasing is to maintain a linear project history. For example, consider a situation where the main branch has progressed since you started working on a feature branch. You want to get the latest updates to the main branch in your feature branch, but you want to keep your branch's history clean so it appears as if you've been working off the latest main branch. This gives the later benefit of a clean merge of your feature branch back into the main branch. Why do we want to maintain a "clean history"? The benefits of having a clean history become tangible when performing Git operations to investigate the introduction of a
Community Discussion
No community discussion yet for this question.
