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

Re: fast forward a branch from another

From
Phil Hord <hordp@cisco.com>
Date
May 12, 2011, 16:58 UTC
Message-ID
<4DCC11B8.8000805@cisco.com>
In-Reply-To
<7vfwojdfta.fsf@alter.siamese.dyndns.org>
On 05/12/2011 12:49 PM, Junio C Hamano wrote:
Show 12 quoted lines
> Phil Hord <hordp@cisco.com> writes:
>
>> I don't see this feature listed in the git push [REMOTES] section.  Is
>> it documented somewhere else?
> Both "git help push" and "git help pull" will tell you in the "Git URLs"
> section that a local file path is a way to name a repository.  Therefore,
> you can say "git ls-remote $(pwd)" to list the the refs from the current
> repository. If you are in git.git directory, "git ls-remote ../git.git"
> does the same thing, so does "git ls-remote .".
>
> These are merely specializations of more general "git push $path $refspec"
> and nothing noteworthy.

Thanks for pointing out the obvious to me. I guess I was thinking of it as a parallel to '-', as in 'git checkout -', and simultaneously distracted by the surprise realization that one can push from/to the self-same repository.

Phil
Previous: Junio C Hamano
Message 7 of 7 in “fast forward a branch from another”
  1. Eric FrederichMay 12, 2011
  2. Michael J GruberMay 12, 2011
  3. Michael J GruberMay 12, 2011
  4. Junio C HamanoMay 12, 2011
  5. Phil HordMay 12, 2011
  6. Junio C HamanoMay 12, 2011
  7. Phil HordMay 12, 2011

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.