Skip to content

Commit 4761d96

Browse files
committed
doc: git-pull: clarify how to exit a conflicted merge
From user feedback: - One user is confused about why `git reset --merge` (why not just `git reset`?). Handle this by mentioning `git merge --abort` and `git reset --abort` instead, which have a more obvious meaning. - 2 users want to know what "In older versions of Git" means exactly (in versions older than 1.7.0). Handle this by removing the warning since it was added 15 years ago (in 3f8fc18) Signed-off-by: Julia Evans <[email protected]>
1 parent 041531e commit 4761d96

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Documentation/git-pull.adoc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,9 @@ branch. There are 4 main options for integrating the remote branch:
3030
You can also set the configuration options `pull.rebase`, `pull.squash`,
3131
or `pull.ff` with your preferred behaviour.
3232

33-
In Git 1.7.0 or later, to cancel a conflicting merge, use
34-
`git reset --merge`. *Warning*: In older versions of Git, running 'git pull'
35-
with uncommitted changes is discouraged: while possible, it leaves you
36-
in a state that may be hard to back out of in the case of a conflict.
37-
38-
If any of the remote changes overlap with local uncommitted changes,
39-
the merge will be automatically canceled and the work tree untouched.
40-
It is generally best to get any local changes in working order before
41-
pulling or stash them away with linkgit:git-stash[1].
33+
If there's a merge conflict during the merge or rebase that you don't
34+
want to handle, you can safely abort it with `git merge --abort` or `git
35+
--rebase abort`.
4236

4337
OPTIONS
4438
-------

0 commit comments

Comments
 (0)