git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git pull unclear manual

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 4, 2021, 01:18 UTC
Message-ID
<xmqqv9a7emx6.fsf@gitster.c.googlers.com>
In-Reply-To
<874khsqq0o.fsf@osv.gnss.ru>
Sergey Organov <sorganov@gmail.com> writes:
Show 14 quoted lines
> Here is how "git help pull" begins:
>
> <q>
> NAME
>        git-pull - Fetch from and integrate with another repository or a local
>        branch
>
> SYNOPSIS
>        git pull [<options>] [<repository> [<refspec>...]]
> </q>
>
> From this, how do one figures how to "integrate with ... local branch"?
>
> Is "git pull" useful to integrate with a local branch at all?
Yes, you can refer to your local repository as ".", so
	git pull . another-branch

will integrate the history of your local "another-branch" into the history of the branch you have currently checked out.

Previous: Sergey OrganovNext: Sergey Organov
Message 2 of 5 in “git pull unclear manual”
  1. Sergey OrganovMar 3, 2021
  2. Junio C HamanoMar 4, 2021
  3. Sergey OrganovMar 4, 2021
  4. Junio C HamanoMar 4, 2021
  5. Sergey OrganovMar 7, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.