Git-svn branching: how to configure git config

a few months ago I configured git with the svn repository. So far, I have used the svn repository to upgrade with the attached application. But now I also want to transfer the material back. To do this, each function that I am going to perform must be in a separate branch. I read about how you should create a new branch, etc. But I think I misconfigured my git, I don't have branch information, etc. I think that I have only information about the trunk. This is how my svn repository was configured in my git configuration:

[remote "origin"]
    url = url-of-git-repository
    fetch = +refs/heads/*:refs/remotes/origin/*
[svn-remote "svn"]
    url = url-of-svn-repository/trunk
    fetch = :refs/remotes/git-svn
[branch "master"]
    merge = refs/heads/master
    remote = origin
... other branch information below (these are git branches)

Now, as you can see, my SVN remote URL goes directly to the trunk. I read about this:

branches = branches/*:refs/remotes/*

, trunk/branches/. , , .

, , , ..

,

+5
2

, SVN- URL.

, ,

git svn -s url-of-svn-repository/foo

( foo //)

[svn-remote "svn"]
        url = url-of-svn-repository
        fetch = foo/trunk:refs/remotes/trunk
        branches = foo/branches/*:refs/remotes/*
        tags = foo/tags/*:refs/remotes/tags/*

git svn- -s. (-- ).

+6

, git svn , ( , SVN - , ).

http://www.dmo.ca/blog/20070608113513/

0

All Articles