diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-10-30 20:05:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-30 20:05:38 -0700 |
commit | 0f06f3ff76bea09a2344adacca5bfc0d637b2086 (patch) | |
tree | f3492b6b08cb5b96150dc5d9dd2ab3752707721c /Documentation/git-pull.txt | |
parent | e7e55483439b2e1f483e3753109a433f2fba1a26 (diff) | |
parent | d504f6975d34025ed3b5478b657789410b52cdb1 (diff) | |
download | git-0f06f3ff76bea09a2344adacca5bfc0d637b2086.tar.gz |
Merge branch 'cb/doc-fetch-pull-merge'
* cb/doc-fetch-pull-merge:
modernize fetch/merge/pull examples
Diffstat (limited to 'Documentation/git-pull.txt')
-rw-r--r-- | Documentation/git-pull.txt | 49 |
1 files changed, 4 insertions, 45 deletions
diff --git a/Documentation/git-pull.txt b/Documentation/git-pull.txt index 7578623edb..de2bcd63bb 100644 --- a/Documentation/git-pull.txt +++ b/Documentation/git-pull.txt @@ -131,54 +131,13 @@ $ git pull origin next ------------------------------------------------ + This leaves a copy of `next` temporarily in FETCH_HEAD, but -does not update any remote-tracking branches. - -* Bundle local branch `fixes` and `enhancements` on top of - the current branch, making an Octopus merge: -+ ------------------------------------------------- -$ git pull . fixes enhancements ------------------------------------------------- -+ -This `git pull .` syntax is equivalent to `git merge`. - -* Merge local branch `obsolete` into the current branch, using `ours` - merge strategy: -+ ------------------------------------------------- -$ git pull -s ours . obsolete ------------------------------------------------- - -* Merge local branch `maint` into the current branch, but do not make - a commit automatically: +does not update any remote-tracking branches. Using remote-tracking +branches, the same can be done by invoking fetch and merge: + ------------------------------------------------ -$ git pull --no-commit . maint +$ git fetch origin +$ git merge origin/next ------------------------------------------------ -+ -This can be used when you want to include further changes to the -merge, or want to write your own merge commit message. -+ -You should refrain from abusing this option to sneak substantial -changes into a merge commit. Small fixups like bumping -release/version name would be acceptable. - -* Command line pull of multiple branches from one repository: -+ ------------------------------------------------- -$ git checkout master -$ git fetch origin +pu:pu maint:tmp -$ git pull . tmp ------------------------------------------------- -+ -This updates (or creates, as necessary) branches `pu` and `tmp` in -the local repository by fetching from the branches (respectively) -`pu` and `maint` from the remote repository. -+ -The `pu` branch will be updated even if it is does not fast-forward; -the others will not be. -+ -The final command then merges the newly fetched `tmp` into master. If you tried a pull which resulted in a complex conflicts and |