简体   繁体   English

将本地git-svn存储库迁移到新的svn分支

[英]Migrate local git-svn repo to a new svn branch

My place of work uses svn and I have been using git-svn for the past few months to work in a git environment and interface with the svn repo as a remote. 我的工作场所使用svn,过去几个月来我一直在使用git-svn在git环境中工作,并与svn repo作为远程接口连接。

The svn repo looks like this (Nnnn is the version number) svn repo看起来像这样(Nnnn是版本号)

//path/../ApplicationName/Nnnn/all_the_code //路径/../ApplicationName/Nnnn/all_the_code

When we start a new release it branches to a new version number. 当我们开始一个新版本时,它会分支到一个新的版本号。 Our svn gui (tortoise SVN) knows how to branch somehow (I never looked into the internals) 我们的svn gui(乌龟SVN)知道如何以某种方式分支(我从未研究过内部结构)

I synced the remote svn repo up to the version number. 我已将远程svn存储库同步到版本号。 When svn branches, how can I tell git to pull whenever I 'git svn update' from the new branch? 当svn分支时,每当我从新分支进行“ git svn update”时,如何告诉git拉? Has anyone done this before? 有人做过吗?

Thanks, and sorry for any ignorance 谢谢,对您的无知表示歉意

Found it here 在这里找到

http://theadmin.org/articles/git-svn-switch-to-a-different-a-svn-url/ http://theadmin.org/articles/git-svn-switch-to-a-different-a-svn-url/

Looks like this process could be packaged into a git svn switch command. 看起来此过程可以打包到git svn switch命令中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM