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

Re: git-svn clone on a central server

From
PHPeter Harris <git@peter.is-a-geek.org>
Date
Mar 15, 2008, 23:45 UTC
Message-ID
<eaa105840803151645j5e8ec443v991b9117df343b8f@mail.gmail.com>
In-Reply-To
<frh8k1$lc8$1@ger.gmane.org>

On Sat, Mar 15, 2008 at 3:38 PM, Bruno Harbulot <Bruno.Harbulot@manchester.ac.uk> wrote:

>  I'm trying to follow example 3 of the git-svn manpage, since I'd like to
>  keep a "central" clone of a subversion repository (and rebase it
>  regularly) on a server and work on local git repositories based on that
>  server's git repository.
...
Show 5 quoted lines
>  I get this error:
>
>  $ git-svn rebase
>  fatal: ambiguous argument 'HEAD': unknown revision or path not in the
>  working tree.

You have to git reset --hard <branch> to create 'master' based on a particular svn branch, or git-svn won't know what to rebase.

I sent a documentation patch to this list back in February, but it appears to have been dropped. I should probably re-send it...

http://article.gmane.org/gmane.comp.version-control.git/72954
Peter Harris
Previous: Bruno HarbulotNext: Bruno Harbulot
Message 2 of 4 in “git-svn clone on a central server”
  1. Bruno HarbulotMar 15, 2008
  2. Peter HarrisMar 15, 2008
  3. Bruno HarbulotMar 16, 2008
  4. Peter HarrisMar 17, 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.