0
0
Azurecloud~10 mins

Azure Repos for source control - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to clone an Azure Repo using Git.

Azure
git clone [1]
Drag options to blanks, or click blank then click option'
Ahttps://dev.azure.com/organization/project/_git/repo
Bgit push origin main
Caz repos create
Dgit status
Attempts:
3 left
💡 Hint
Common Mistakes
Using commands like 'git push' or 'git status' instead of the clone URL.
Trying to create a repo instead of cloning.
2fill in blank
medium

Complete the command to check the status of your local repo changes.

Azure
git [1]
Drag options to blanks, or click blank then click option'
Astatus
Bclone
Ccommit
Dpush
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git push' which sends changes to the remote repo.
Using 'git clone' which copies the repo.
3fill in blank
hard

Fix the error in the command to commit changes with a message.

Azure
git commit [1] "Update README"
Drag options to blanks, or click blank then click option'
A-p
B-s
C-m
D-a
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-a' which stages all changes but does not add a message.
Using '-p' which is for patch mode.
4fill in blank
hard

Fill both blanks to push your local commits to the main branch on Azure Repos.

Azure
git [1] origin [2]
Drag options to blanks, or click blank then click option'
Apush
Bpull
Cmain
Dmaster
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pull' instead of 'push' to send changes.
Using 'master' when the repo uses 'main' as default branch.
5fill in blank
hard

Fill all three blanks to create a new branch, switch to it, and push it to Azure Repos.

Azure
git [1] -b [2] && git [3] -u origin [2]
Drag options to blanks, or click blank then click option'
Acheckout
Bfeature1
Cpush
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'push' to send the branch.
Not using the same branch name in both commands.