Skip to content

Commit

Permalink
Use "git merge" instead of "git pull ."
Browse files Browse the repository at this point in the history
"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 <th.acker@arcor.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Thomas Ackermann authored and Junio C Hamano committed Aug 27, 2013
1 parent 3e65ac4 commit a7bdee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Documentation/user-manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ $ git pull . branch
$ git merge branch
-------------------------------------------------

are roughly equivalent. The former is actually very commonly used.
are roughly equivalent.

[[submitting-patches]]
Submitting patches to a project
Expand Down Expand Up @@ -2255,11 +2255,11 @@ commit to this branch.
$ ... patch ... test ... commit [ ... patch ... test ... commit ]*
-------------------------------------------------

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

-------------------------------------------------
$ git checkout test && git pull . speed-up-spinlocks
$ git checkout test && git merge speed-up-spinlocks
-------------------------------------------------

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

-------------------------------------------------
$ git checkout release && git pull . speed-up-spinlocks
$ git checkout release && git merge speed-up-spinlocks
-------------------------------------------------

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

0 comments on commit a7bdee1

Please sign in to comment.