This is a mirror of official site: http://jasper-net.blogspot.com/

Analog of SVN branch switch for Git

| Thursday, August 4, 2011
Working with Git in SVN based organization is possible and make a lot of benefits. Sources checked out once are now at you local repository, so all you do is commits, rebases and dcommits back to SVN. But sometimes you need to be able to switch to another SVN branch. You need something equivalent to "SVN switch" command inside Git environment.

I’m been trying to switch to new branch, but I found no related information about that. I ended up this solution, I would like to share.

    Manually add new configuration into ~/.gitconfig, for new SVN location

        [svn-remote "svn25"]
            url = https://svn.server/branches/branch25
            fetch = :refs/remotes/git-svn-25

    Fetch changes from svn25

        git svn fetch svn25


Read more: .NET Zone
QR: analog-svn-branch-switch-git

Posted via email from Jasper-net

0 comments: