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

Re: merge two local mirrors with detached heads and similar remotes

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 7, 2010, 11:52 UTC
Message-ID
<m3vd49fj1k.fsf@localhost.localdomain>
In-Reply-To
<AANLkTi=JmpXEiEe-7-ZicUp-QosWjTZQgK77-f=9iAtL@mail.gmail.com>
Zenaan Harkness <zen@freedbms.net> writes:
Show 9 quoted lines
> ---------
> Looks very much like success to me. Small thing I notice is this line:
>   remotes/origin/HEAD -> origin/master
> 
> has become this:
>   remotes/lach/HEAD
> 
> (ie it's not a link any more - probably not particularly relevant,
> perhaps git gc would automate tidying this?)
It might be detached head: you can check it by using
  $ git rev-parse --symbolic-full-name remotes/lach/HEAD

If it is 'remotes/lach/HEAD' or 'HEAD', it is detached HEAD (unnamed branch).

Show 5 quoted lines
> Should something like Junio's tutorial go into
> Documentation/gitworkflows.xml(ARGGH!) ?
> If not, where else?
> Is there anything besides vim (about all I know) you can recommend for
> editing xml(ARGGH!) docs?

Documentation/gitworkflows.txt is source of XML, HTML, info and manpage versions - please edit source (in AsciiDoc), and not generated documentation.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Zenaan Harkness
Message 4 of 4 in “merge two local mirrors with detached heads and similar remotes”
  1. Zenaan HarknessNov 7, 2010
  2. Zenaan HarknessNov 7, 2010
  3. Zenaan HarknessNov 7, 2010
  4. Jakub NarebskiNov 7, 2010

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.