AZ-400 · Question #456
AZ-400 Question #456: Real Exam Question with Answer & Explanation
The script syncs changes from GitHub (repo1) to Azure Repos (repo2) by first cloning repo2 (the Azure Repos destination) locally using its clone URL, then adding repo1 (GitHub source) as a remote using repo1's clone URL, and finally pushing or pulling changes into repo2. This thr
Question
Drag and Drop Question You have a GitHub repository named repo1. You migrate repo1 to an Azure Repos repository named repo2. After the migration, changes are made to repo1. You need to sync the changes to repo2. How should you complete the script? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. Answer:
Explanation
The script syncs changes from GitHub (repo1) to Azure Repos (repo2) by first cloning repo2 (the Azure Repos destination) locally using its clone URL, then adding repo1 (GitHub source) as a remote using repo1's clone URL, and finally pushing or pulling changes into repo2. This three-step pattern - clone the destination, add the source as a remote, then sync - is the standard Git workflow for migrating and keeping repositories in sync across platforms.
Topics
Community Discussion
No community discussion yet for this question.