AZ-400 · Question #190
You are developing an application. The application source has multiple branches. You make several changes to a branch used for experimentation. You need to update the main branch to capture the change
The correct answer is A. Rebase. Git rebase resequences the commit history of the target branch so that it contains all source branch commits, followed by all target branch commits since the last common commit. Another way to view it is that a rebase replays the changes in your target branch on top of the source
Question
Options
- ARebase
- BFetch
- CMerge
- DPush
How the community answered
(26 responses)- A77% (20)
- B8% (2)
- C4% (1)
- D12% (3)
Explanation
Git rebase resequences the commit history of the target branch so that it contains all source branch commits, followed by all target branch commits since the last common commit. Another way to view it is that a rebase replays the changes in your target branch on top of the source https://docs.microsoft.com/en-us/azure/devops/repos/git/rebase?view=azure- devops&tabs=visual-studio-2019
Community Discussion
No community discussion yet for this question.