0
0
Gitdevops~10 mins

Fetch vs pull difference in Git - Interactive Practice

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

Complete the command to download changes from the remote repository without merging.

Git
git [1]
Drag options to blanks, or click blank then click option'
Acommit
Bmerge
Cfetch
Dpush
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git pull' instead of 'git fetch' when you only want to download changes.
2fill in blank
medium

Complete the command to download and merge changes from the remote repository into your current branch.

Git
git [1]
Drag options to blanks, or click blank then click option'
Apull
Bfetch
Cclone
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git fetch' when you want to update your local branch automatically.
3fill in blank
hard

Fix the error in the command to update your local branch with remote changes.

Git
git [1] origin main
Drag options to blanks, or click blank then click option'
Afetch
Bpull
Cpush
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git fetch origin main' expecting local branch to update automatically.
4fill in blank
hard

Fill both blanks to create a command that downloads remote changes but does not merge them.

Git
git [1] origin [2]
Drag options to blanks, or click blank then click option'
Afetch
Bpull
Cmain
Dmaster
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pull' instead of 'fetch' when you want to avoid merging.
5fill in blank
hard

Fill all three blanks to create a command that downloads and merges changes from the remote 'master' branch.

Git
git [1] origin [2] && git [3]
Drag options to blanks, or click blank then click option'
Afetch
Bpull
Cmaster
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' instead of 'pull' for merging changes.