How to git clone an SVN repository where all branches are located in root?
问题 My SVN structure is like this: / |-- Branch1 |-- Branch2 |-- Branch3 ... How can I clone this into a git repository preserving the branches (i.e. not flat history)? Bonus question: How to clone only a subset of the SVN branches into a new git repository? 回答1: I believe that in SVN branches are just folders, its just a convention. Git actually works with branches. With this the approach becomes easier. As you need to fetch the data from SVN repository you will need to create remote for it.