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

Re: Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote)

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 6, 2008, 14:02 UTC
Message-ID
<20081006140243.GB8203@spearce.org>
In-Reply-To
<pan.2008.10.06.14.00.57.104051@yahoo.com>
Jeff Kowalczyk <jtk@yahoo.com> wrote:
Show 14 quoted lines
> To test a particular upstream revision, on a git svn remote checkout (i.e.
> branches/1.2, 76c7af2...), I checked out the equivalent of HEAD^^ (git
> checkout 4a3d99c0c9).
> 
> Now back at the branch tip, I get fatal: ref HEAD is not a symbolic ref
> on git svn rebase: 
> 
> (4a3d99c...) $ git checkout 76c7af2
> HEAD is now at 76c7af2... Minor changes to CONTRIBUTORS
> (76c7af2...) $ git svn rebase
> fatal: ref HEAD is not a symbolic ref Current branch HEAD is up to date.
> Segmentation fault
> 
> How can I manually correct ref HEAD?

git checkout whateverbranchyouwereonbefore git svn rebase

-- 
Shawn.
Previous: Jeff KowalczykNext: Jeff Kowalczyk
Message 2 of 3 in “Repairing fatal: ref HEAD is not a symbolic ref (git checkout of svn remote)”
  1. Jeff KowalczykOct 6, 2008
  2. Shawn O. PearceOct 6, 2008
  3. Jeff KowalczykOct 7, 2008

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.