且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

添加一个新的Subversion远程到现有的Git仓库

更新时间:2023-11-24 20:00:04

它是。 git svn init 仅编辑默认的svn remote,您必须编辑配置文件。

It is. git svn init only edits the default svn remote, you'll have to edit the config file.

.git / config ,复制并修改现有的svn-remote部分,然后运行 git svn fetch 。例如:

Look in .git/config, copy and alter the existing svn-remote section, and run git svn fetch. For example:

[svn-remote "svn2"]
        url = http://bzzz.googlecode.com/svn
        fetch = trunk:refs/remotes/svn2/trunk
        branches = branches/*:refs/remotes/svn2/*
        tags = tags/*:refs/remotes/svn2/tags/*