How to Abort Git Merge Conflicts

Cameron McKenzie
Cameron McKenzie
2.2 هزار بار بازدید - 3 سال پیش - Got a merge conflict you
Got a merge conflict you need to abort? Too early to do a git merge undo, but too late to not trigger the git merge conflict at all? Well, here comes Git Merge Abort to the rescue. It can help you abort a git merge conflict and bring your Git workspace back to where it was prior to the merge.

The git merge abort command is exactly as it sounds:

git merge --abort

Pro Git Tip? The git merge abort command is just a hard reset. So the following command does the exact same thing:

git reset --hard

Good luck with your git merge abort command!
3 سال پیش در تاریخ 1400/07/14 منتشر شده است.
2,226 بـار بازدید شده
... بیشتر