是否可以在 SVN 存储库的一个子部分上使用 SubGit?

Is it possible to use SubGit on a subsection of an SVN repository?

我们有一个 SVN 存储库,其中不仅包含我们开发的软件。我想开始使用 Git 来进行我们的软件更改。因此是否可以仅将 SubGit 与 SVN 存储库的单个目录一起使用?

是的。如果目录是 trunk/branches/tags 结构的项目,你 可以 运行

$ subgit configure --svn-url <SVN URL of that directory> repo.git
$ subgit install repo.git

如果目录没有trunk/branches/tags结构,你可以运行 使用这个 EAP build (或 SubGit 3.0 发布时)和 运行

$ subgit configure --svn-url <SVN URL of that directory> repo.git

然后编辑 repo。git/subgit/config

删除所有 svn.trunk/svn.branches/svn.tags/svn.shelves 选项然后 运行

$ subgit install repo.git