0
0
Gitdevops~5 mins

Why merging combines work in Git - Quick Recap

Choose your learning style9 modes available
Recall & Review
beginner
What does merging do in Git?
Merging in Git combines changes from different branches into one, bringing together work done separately.
Click to reveal answer
beginner
Why is merging important when multiple people work on the same project?
Merging helps combine everyone's changes so the project stays up to date and no work is lost.
Click to reveal answer
intermediate
What happens if two branches change the same part of a file during a merge?
Git will show a conflict that needs to be fixed manually before finishing the merge.
Click to reveal answer
intermediate
How does Git know what changes to combine during a merge?
Git compares the common starting point of branches and applies the changes made on each branch.
Click to reveal answer
intermediate
What is a fast-forward merge?
A fast-forward merge happens when the branch being merged is ahead and can be added without creating a new merge commit.
Click to reveal answer
What does Git merging do?
AReverts all changes
BDeletes branches permanently
CCreates a new repository
DCombines changes from different branches
What must you do if Git finds conflicting changes during a merge?
AManually fix the conflicts
BDelete the repository
CIgnore the conflicts
DRestart the computer
When does a fast-forward merge happen?
AWhen branches are deleted
BWhen branches have conflicts
CWhen the branch is ahead and no new merge commit is needed
DWhen the repository is cloned
Why is merging useful in teamwork?
AIt creates new branches automatically
BIt combines everyone's work into one place
CIt deletes old files
DIt stops others from working
What does Git compare to merge changes?
AThe common starting point of branches
BThe size of files
CThe number of commits
DThe date of last commit
Explain in your own words why merging is like combining pieces of a puzzle.
Think about how separate puzzle pieces come together to form a full picture.
You got /4 concepts.
    Describe what happens when two people change the same file and then try to merge their work.
    Imagine two friends writing different endings to the same story.
    You got /4 concepts.