0
0
Gitdevops~5 mins

git fetch to download without merging - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ADownloads changes without merging
BDownloads and merges changes automatically
CDeletes remote branches
DCreates a new branch
Which command downloads and merges changes in one step?
Agit fetch
Bgit branch
Cgit pull
Dgit clone
After running git fetch, how do you see remote branches?
Agit status
Bgit branch -r
Cgit log
Dgit merge
Why might you prefer git fetch over git pull?
ATo push changes to remote
BTo delete local branches
CTo create a new repository
DTo avoid automatic merging and review changes first
What command merges fetched changes from remote branch main?
Agit merge origin/main
Bgit fetch main
Cgit pull origin main
Dgit checkout main
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.