git svn - 克隆所有外部的回购 [英] git svn - clone repo with all externals

查看:197
本文介绍了git svn - 克隆所有外部的回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用git克隆一个svn仓库,但不幸的是, svn checkout 获得所有外部仓库的回购, git svn clone 只会获取没有外部存储的存储库。我如何通过 git svn 从svn仓库获取外部数据?我不想做任何花哨的东西,只需要获得externals的完成回购。

git-svn doesn' t支持外部,但您可以尝试 SmartGit 而不是git-svn。它支持svn:externals,将它们转换为.gitsvnextmodules文件并显示为模块。唯一的限制:您应该使用SmartGit克隆存储库,而不是打开已经存在的git-svn存储库。


I want to use git to clone a svn repository, but unfortunately, where svn checkout gets the repo with all externals, git svn clone only gets the repository without externals. How can I get the externals from the svn repository via git svn? I don't want to do any fancy stuff, just get the the complet repo with externals.

解决方案

git-svn doesn't support externals, but you may try SmartGit instead of git-svn. It supports svn:externals, converting them into .gitsvnextmodules file and displaying as modules. The only restriction: you should clone the repository with SmartGit instead of opening already existing git-svn repository.

这篇关于git svn - 克隆所有外部的回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆