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

create branch from svn repos

From
MZMing Zhang <blackmagic02881@gmail.com>
Date
Apr 27, 2010, 20:59 UTC
Message-ID
<j2h93552bad1004271359q63611fcdn82a3915a3bb74b25@mail.gmail.com>
Hi All
I have a svn repos with this layout
trunk
tags
branches-- b1
                    b2
                    dir/ b3
                           b4
i used git-svn to clone a svn repos. and i have remote branches like

svn/b1 svn/b2 svn/dir

i can create a local branch from b1 or b2, or even dir with command like git checkout -b local/b1 svn/b1

but if i want to create a local branch for b3 with command git checkout -b local/b1 svn/dir/b3

it will fail with error messages like

fatal: git checkout: updating paths is incompatible with switching branches/forcing Did you intend to checkout 'svn/dir/b3' which can not be resolved as commit?

so is what i want to do feasible?
Thanks!
Ming
Next: Dmitrijs Ledkovs
Message 1 of 2 in “create branch from svn repos”
  1. Ming ZhangApr 27, 2010
  2. Dmitrijs LedkovsApr 27, 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.