ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 92 - AZ-400 discussion

Report
Export

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 Get repository. Which Get option should you use?

A.
Rebase
Answers
A.
Rebase
B.
Fetch
Answers
B.
Fetch
C.
Merge
Answers
C.
Merge
D.
Push
Answers
D.
Push
Suggested answer: C

Explanation:

Create pull requests to review and merge code in a Get project. Pull requests let your team review code and give feedback on changes before merging it into the master branch.

Incorrect Answers:

A: Use rebase to address the problem of updating your branch with the latest changes from the main branch. Rebase takes the changes made in the commits in your current branch and replays them on the history of another branch. The commit history of your current branch will be rewritten so that it starts from the most recent commit in the target branch of the rebase. Rebasing your changes in your feature branch off the latest changes in the main branch lets you test your changes on the most recent version in the main branch while keeping a clean get history.

D: Share changes made in commits and branches using the push command. Push your branches to the remote repository. get adds your commits to an existing branch on the remote or creates a new branch with the same commits as your local branch.

Reference:

https://docs.microsoft.com/en-us/azure/devops/repos/git/pull-requests

asked 02/10/2024
Theodoros Flabouras
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first