{"thread":{"id":"26981","subject":"git checkout in a subdirectory","startedAt":"2011-04-03T18:53:13Z","lastAt":"2011-04-03T18:53:13Z","messageCount":1,"participants":["Alenoosh"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"165068","messageId":"1301856793041-6236473.post@n2.nabble.com","threadId":"26981","inReplyTo":null,"subject":"git checkout in a subdirectory","fromName":"Alenoosh","fromEmail":"hope2end@gmail.com","sentAt":"2011-04-03T18:53:13Z","receivedAt":"2011-04-03T18:53:13Z","isPatch":false,"sender":{"key":"hope2end@gmail.com","avatar":null},"body":"Hi all\n\nI have recently converted my svn repository to git repository (A) but I did\nnot convert the svn branches , here is my problem :\n\nOne of my svn branches is a branch of a subdirectory , I have converted that\nto a separate git repo (B) and\ncreated a git branch from that in the (A) git repo but the problem is that I\ncan't checkout that branch in the corresponding subdirectory of my git repo\n(A) ...\n\nmy git repo (A) looks something like this :\n\n----------------------------------------------------------------------\ngit-repo\n    |-- dir1\n    |-- dir2\n    |-- dir3 -- dir31\n\nhere's what I have done :\n    cd /tmp\n    git svn clone   B\n    git clone --bare /tmp/B   B\n    cd git-repo\n    git remote add remote-git-branch B\n    git fetch remote-git-branch\n    git branch git-branch remotes/remote-git-branch\n\nI want to do the git checkout in for example dir31 directory :\n\n    cd dir3/dir31\n    git checkout git-branch\n-----------------------------------------------------------------------\n\nHow can I solve this problem ?\nI've checked all 'git checkout' options but couldn't find anything ...\n\nThanks in advance\n\nAlenoosh\n\n--\nView this message in context: http://git.661346.n2.nabble.com/git-checkout-in-a-subdirectory-tp6236473p6236473.html\nSent from the git mailing list archive at Nabble.com.\n"}]}