0
0
Gitdevops~10 mins

Handling PR feedback and updates in Git - Interactive Code Practice

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

Complete the command to fetch the latest changes from the remote repository.

Git
git [1] origin
Drag options to blanks, or click blank then click option'
Afetch
Bpush
Ccommit
Dmerge
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' instead of 'fetch' will try to send your changes to remote, not get updates.
2fill in blank
medium

Complete the command to switch to the branch named 'feature-update'.

Git
git [1] feature-update
Drag options to blanks, or click blank then click option'
Ainit
Bclone
Cmerge
Dcheckout
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'clone' tries to copy a repository, not switch branches.
3fill in blank
hard

Fix the error in the command to update your branch with the latest changes from 'main'.

Git
git [1] origin main
Drag options to blanks, or click blank then click option'
Apull
Bbranch
Ccommit
Dpush
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' tries to send your changes instead of getting updates.
4fill in blank
hard

Fill both blanks to create a commit with a message describing the changes.

Git
git [1] -m [2]
Drag options to blanks, or click blank then click option'
Acommit
B"Fix issue with login"
C"Update README file"
Dpush
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' instead of 'commit' will send changes to remote, not save locally.
5fill in blank
hard

Fill all three blanks to update your branch with the latest 'main' branch changes using rebase.

Git
git [1] [2] [3]
Drag options to blanks, or click blank then click option'
Arebase
Borigin
Cmain
Dmerge
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'merge' instead of 'rebase' changes history differently.