我已经使用命令 git svn clone ... --trunk=trunk --tags=tags --branches=branches
克隆了一个 SVN 存储库。
操作已经正确执行,现在当我列出我的分支时,我有所有过去的标签,例如:
$ git branch -a
* master
remotes/tags/1.0
remotes/tags/2.0
我可以轻松地 checkout 分支并创建真正的 git 标签,但是完成后如何删除远程分支 remotes/tags/1.0
?
最佳答案
另一种选择是尝试使用 ruby script svn2git 导入 svn 存储库。 :
svn2git
is a tiny utility for migrating projects from Subversion to Git while keeping the trunk, branches and tags where they should be.
这意味着“svn branches”标签将是 git 仓库中的实际 git 标签。
关于Git - 在 git-svn clone 之后删除远程分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24773284/