Which Git command is used to abort a merge in progress due to conflicts?

  • git abort
  • git merge --abort
  • git merge --cancel
  • git reset --merge
The correct Git command to abort a merge in progress due to conflicts is git merge --abort. This command cancels the merge operation and returns the working directory to the state before the merge started.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *