0
0
Gitdevops~5 mins

git pull to download and merge - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the git pull command do?

git pull downloads changes from a remote repository and merges them into your current branch.

Click to reveal answer
beginner
What two git commands does git pull combine?

git pull combines git fetch (to download changes) and git merge (to merge changes into your branch).

Click to reveal answer
intermediate
What happens if there are conflicts during a git pull merge?

Git will pause the merge and ask you to fix conflicts manually before completing the merge.

Click to reveal answer
beginner
How do you specify which remote branch to pull from?

Use git pull <remote> <branch>, for example git pull origin main.

Click to reveal answer
beginner
What is the difference between git pull and git fetch?

git fetch only downloads changes but does not merge them. git pull downloads and merges in one step.

Click to reveal answer
What does git pull do?
ADownloads and merges changes from a remote branch
BDeletes local changes
CCreates a new branch
DPushes local changes to remote
Which two commands are combined by git pull?
Agit clone and git commit
Bgit fetch and git merge
Cgit push and git merge
Dgit status and git add
If a merge conflict happens during git pull, what should you do?
AIgnore it and continue
BDelete your local branch
CFix conflicts manually and complete the merge
DRun <code>git push</code>
How do you pull changes from the remote branch named develop?
Agit fetch develop
Bgit push origin develop
Cgit merge develop
Dgit pull origin develop
What is the main difference between git fetch and git pull?
A<code>git pull</code> downloads and merges, <code>git fetch</code> only downloads
B<code>git fetch</code> merges changes, <code>git pull</code> does not
C<code>git fetch</code> deletes branches, <code>git pull</code> creates branches
DThey do the same thing
Explain what happens step-by-step when you run git pull.
Think about fetching and merging.
You got /4 concepts.
    Describe how you would handle a merge conflict after running git pull.
    Focus on conflict resolution steps.
    You got /4 concepts.