nerdexam
Microsoft

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

Submitted by fatima_kr· Mar 6, 2026Design and implement source control

Question

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 changes made to the experimentation branch and override the history of the Git repository. Which Git option should you use?

Options

  • ARebase
  • BFetch
  • CMerge
  • DPush

How the community answered

(26 responses)
  • A
    77% (20)
  • B
    8% (2)
  • C
    4% (1)
  • D
    12% (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.

Full AZ-400 Practice