0
0
Gitdevops~10 mins

Aborting a merge 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 abort an ongoing merge in Git.

Git
git [1] --abort
Drag options to blanks, or click blank then click option'
Acommit
Brevert
Cmerge
Dreset
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git commit --abort' which is not a valid command.
Using 'git reset --abort' which does not abort merges.
2fill in blank
medium

Complete the command to abort a merge and reset the working directory to the last commit.

Git
git [1] --hard HEAD
Drag options to blanks, or click blank then click option'
Amerge
Brevert
Ccheckout
Dreset
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git merge --hard HEAD' which is invalid.
Using 'git revert --hard HEAD' which does not reset the working directory.
3fill in blank
hard

Fix the error in the command to abort a merge by completing the blank.

Git
git [1] --abort
Drag options to blanks, or click blank then click option'
Amerge
Bcommit
Crebase
Dreset
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git commit --abort' which is invalid.
Using 'git rebase --abort' which aborts rebase, not merge.
4fill in blank
hard

Fill both blanks to abort a merge and discard all local changes.

Git
git [1] --[2]
Drag options to blanks, or click blank then click option'
Amerge
Breset
Chard
Dabort
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git merge --abort' does not discard local changes forcibly.
Using 'git reset --abort' which is invalid.
5fill in blank
hard

Fill all three blanks to abort a merge and reset the index and working directory.

Git
git [1] --abort && git [2] --[3]
Drag options to blanks, or click blank then click option'
Amerge
Breset
Chard
Dclean
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git reset --abort' which is invalid.
Using 'git merge --hard' which is invalid.