{"thread":{"id":"23623","subject":"create branch from svn repos","startedAt":"2010-04-27T20:59:40Z","lastAt":"2010-04-27T23:25:19Z","messageCount":2,"participants":["Ming Zhang","Dmitrijs Ledkovs"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140551","messageId":"j2h93552bad1004271359q63611fcdn82a3915a3bb74b25@mail.gmail.com","threadId":"23623","inReplyTo":null,"subject":"create branch from svn repos","fromName":"Ming Zhang","fromEmail":"blackmagic02881@gmail.com","sentAt":"2010-04-27T20:59:40Z","receivedAt":"2010-04-27T20:59:40Z","isPatch":false,"sender":{"key":"blackmagic02881@gmail.com","avatar":null},"body":"Hi All\n\nI have a svn repos with this layout\n\ntrunk\ntags\nbranches-- b1\n                    b2\n                    dir/ b3\n                           b4\n\ni used git-svn to clone a svn repos. and i have remote branches like\n\nsvn/b1\nsvn/b2\nsvn/dir\n\ni can create a local branch from b1 or b2, or even dir with command like\ngit checkout -b local/b1 svn/b1\n\nbut if i want to create a local branch for b3 with command\ngit checkout -b local/b1 svn/dir/b3\n\nit will fail with error messages like\n\nfatal: git checkout: updating paths is incompatible with switching\nbranches/forcing\nDid you intend to checkout 'svn/dir/b3' which can not be resolved as commit?\n\nso is what i want to do feasible?\n\nThanks!\n\nMing\n"},{"id":"140558","messageId":"n2v86ecb3c71004271625r4f546c93v394c211f6beb27@mail.gmail.com","threadId":"23623","inReplyTo":"j2h93552bad1004271359q63611fcdn82a3915a3bb74b25@mail.gmail.com","subject":"Re: create branch from svn repos","fromName":"Dmitrijs Ledkovs","fromEmail":"dmitrij.ledkov@ubuntu.com","sentAt":"2010-04-27T23:25:19Z","receivedAt":"2010-04-27T23:25:19Z","isPatch":false,"sender":{"key":"dmitrij.ledkov@ubuntu.com","avatar":"https://gravatar.com/avatar/79b618c6eb391ddb486c2ee0d3b429014e0e9ba579fd55f2e035f482fc8c24f4?d=mp&s=160"},"body":"On 27 April 2010 21:59, Ming Zhang <blackmagic02881@gmail.com> wrote:\n> fatal: git checkout: updating paths is incompatible with switching\n> branches/forcing\n> Did you intend to checkout 'svn/dir/b3' which can not be resolved as commit?\n>\n> so is what i want to do feasible?\n>\n> Thanks!\n>\n> Ming\n\n$ git help svn\n\nRead the last bits on how to define svn remote branches in the .git/config\nupdate your .git/config\nand do\n\n$ git svn init $same_top_level_svn_url\n$ git svn fetch\n"}]}