0
0
Gitdevops~10 mins

Merge conflicts why they happen in Git - Interactive Code Practice

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

Complete the command to start a merge in Git.

Git
git merge [1]
Drag options to blanks, or click blank then click option'
Abranch
Bpush
Cclone
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'branch' causes errors.
Trying to merge 'clone' is invalid.
2fill in blank
medium

Complete the sentence: Merge conflicts happen when two branches change the same {{BLANK_1}}.

Git
Merge conflicts happen when two branches change the same [1].
Drag options to blanks, or click blank then click option'
Arepository
Bcommit
Cbranch
Dfile
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'commit' with the changed item.
Thinking branches themselves conflict.
3fill in blank
hard

Fix the error in the command to abort a merge conflict resolution.

Git
git [1] merge --abort
Drag options to blanks, or click blank then click option'
Amerge
Brevert
Creset
Dcheckout
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git reset merge' is invalid.
Using 'git revert merge' does not abort merge.
4fill in blank
hard

Fill both blanks to create a command that shows files with conflicts.

Git
git [1] --name-only --diff-filter=[2]
Drag options to blanks, or click blank then click option'
Adiff
Bmerge
CU
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'merge' instead of 'diff' shows merge commands, not file list.
Wrong diff filter shows wrong files.
5fill in blank
hard

Fill all three blanks to create a command that marks a conflict as resolved.

Git
git [1] [2] [3]
Drag options to blanks, or click blank then click option'
Aadd
Bfile.txt
C--
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting '--' causes errors if file name looks like option.
Using 'commit' instead of 'add' does not mark resolution.