Can I use git-svn to clone a specific branch of a remote SVN repo and commit back to it?

branch, git, git-svn, svn

Solution

Yes, this works fine. You can just do `git svn clone https://svn.example.com/project/branches/somebranch/` and then use git-svn normally (i.e. `git svn rebase` to pull and `git svn dcommit` to push.)

Problem

I have a very large codebase with many tags and branches on a remote SVN server. I'd like to use git to clone a specific branch to work on, then eventually merge it back to the remote SVN. Is this possible? Most documentation I've seen doesn't directly say this is supported.

Original source