Skip to content

Commit a7bdee1

Browse files
tacker66gitster
authored andcommitted
Use "git merge" instead of "git pull ."
"git pull ." works, but "git merge" is the recommended way for new users to do things. (The old description also should have read "The former is actually *not* very commonly used".) Signed-off-by: Thomas Ackermann <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3e65ac4 commit a7bdee1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/user-manual.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ $ git pull . branch
17931793
$ git merge branch
17941794
-------------------------------------------------
17951795

1796-
are roughly equivalent. The former is actually very commonly used.
1796+
are roughly equivalent.
17971797

17981798
[[submitting-patches]]
17991799
Submitting patches to a project
@@ -2255,11 +2255,11 @@ commit to this branch.
22552255
$ ... patch ... test ... commit [ ... patch ... test ... commit ]*
22562256
-------------------------------------------------
22572257

2258-
When you are happy with the state of this change, you can pull it into the
2258+
When you are happy with the state of this change, you can merge it into the
22592259
"test" branch in preparation to make it public:
22602260

22612261
-------------------------------------------------
2262-
$ git checkout test && git pull . speed-up-spinlocks
2262+
$ git checkout test && git merge speed-up-spinlocks
22632263
-------------------------------------------------
22642264

22652265
It is unlikely that you would have any conflicts here ... but you might if you
@@ -2271,7 +2271,7 @@ see the value of keeping each patch (or patch series) in its own branch. It
22712271
means that the patches can be moved into the `release` tree in any order.
22722272

22732273
-------------------------------------------------
2274-
$ git checkout release && git pull . speed-up-spinlocks
2274+
$ git checkout release && git merge speed-up-spinlocks
22752275
-------------------------------------------------
22762276

22772277
After a while, you will have a number of branches, and despite the

0 commit comments

Comments
 (0)