Skip to content

Commit

Permalink
user-manual.txt: prefer 'merge --abort' over 'reset --hard'
Browse files Browse the repository at this point in the history
Since the operation in progress is merge, stick to the 'git merge'
variant of aborting. 'git reset --hard' does not really tell you about
aborting the merge by just looking, longer to type, and even though I
know by heart what --hard do, I still dislike it when I need to consider
whether --hard, --mixed or --soft.

Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
pclouds authored and gitster committed May 7, 2019
1 parent 75f4c7c commit fc991b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/user-manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ If you get stuck and decide to just give up and throw the whole mess
away, you can always return to the pre-merge state with

-------------------------------------------------
$ git reset --hard HEAD
$ git merge --abort
-------------------------------------------------

Or, if you've already committed the merge that you want to throw away,
Expand Down

0 comments on commit fc991b4

Please sign in to comment.