我正在使用大型svn存储库(30,000多个版本).我使用git-svn但收效甚微.
我的主要问题是svn存储库包含对大型二进制文件(~30MB)的频繁更新.我不关心这些文件的历史,但我关心这些文件的当前版本.
如果自我上一次svn rebase(这是常见的)以来对大型二进制文件进行了多次更新,git svn rebase的运行速度非常慢.我的git数据库也快速增长.我想解决这两个关键问题.
理想情况下,我想要做的是完全忽略svn中的这些大文件,然后运行一个脚本,该脚本只获取最新版本,然后我将使用我的.gitignore进行阻止.我对其他选择非常开放.
rco*_*len 10
你可以使用以下--ignore-paths选项忽略一些文件git svn:
--ignore-paths=<regex>
This allows one to specify a Perl regular expression that will
cause skipping of all matching paths from checkout from SVN.
The --ignore-paths option should match for every fetch
(including automatic fetches due to clone, dcommit, rebase,
etc) on a given repository.
config key: svn-remote.<name>.ignore-paths
If the ignore-paths config key is set and the command line
option is also given, both regular expressions will be used.
Examples:
Skip "doc*" directory for every fetch
--ignore-paths="^doc"
Skip "branches" and "tags" of first level directories
--ignore-paths="^[^/]+/(?:branches|tags)"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2401 次 |
| 最近记录: |