Recall & Review
beginner
What does
git fetch do?git fetch downloads new data from a remote repository but does not change your working files or current branch.
Click to reveal answer
beginner
How is
git fetch different from git pull?git fetch only downloads changes without merging them. git pull downloads and merges changes into your current branch.
Click to reveal answer
intermediate
Why use
git fetch instead of git pull?Using git fetch lets you review changes before merging, avoiding unexpected conflicts or errors.
Click to reveal answer
beginner
What command shows the branches fetched from the remote after
git fetch?Use git branch -r to list remote branches fetched.
Click to reveal answer
intermediate
How do you merge changes after using
git fetch?Run git merge origin/branch-name to merge fetched changes from the remote branch into your current branch.
Click to reveal answer
What does
git fetch do?✗ Incorrect
git fetch downloads changes but does not merge them.
Which command downloads and merges changes in one step?
✗ Incorrect
git pull downloads and merges changes automatically.
After running
git fetch, how do you see remote branches?✗ Incorrect
git branch -r lists remote branches fetched.
Why might you prefer
git fetch over git pull?✗ Incorrect
git fetch lets you check changes before merging.
What command merges fetched changes from remote branch
main?✗ Incorrect
git merge origin/main merges the fetched remote main branch.
Explain what
git fetch does and how it differs from git pull.Think about downloading vs merging.
You got /4 concepts.
Describe the steps to update your local branch with remote changes using
git fetch.Separate downloading and merging steps.
You got /4 concepts.