Complete the command to abort an ongoing merge in Git.
git [1] --abortThe command git merge --abort stops the current merge and returns the repository to the state before the merge started.
Complete the command to abort a merge and reset the working directory to the last commit.
git [1] --hard HEADgit reset --hard HEAD resets the working directory and index to the last commit, effectively discarding changes including those from a merge.
Fix the error in the command to abort a merge by completing the blank.
git [1] --abortThe correct command to abort a merge is git merge --abort. Other commands do not support the --abort option for merges.
Fill both blanks to abort a merge and discard all local changes.
git [1] --[2]
git reset --hard discards all local changes and aborts the merge by resetting the working directory to the last commit.
Fill all three blanks to abort a merge and reset the index and working directory.
git [1] --abort && git [2] --[3]
First, git merge --abort stops the merge. Then, git reset --hard resets the index and working directory to the last commit, discarding changes. Optionally, git clean removes untracked files, but here the focus is on abort and reset.