我需要将本地 SVN 存储库转换为 GIT。我知道如何将远程 SVN 存储库转换为 git,但是,我只有本地存储库;他们不再托管。我将如何将本地 SVN 存储库转换为 git?
我试过的是这样的:
git svn clone -s file://data/svn/repo/ /data/git/repo.git
错误是:
E: 'trunk' is not a complete URL and a separate URL is not specified
dre*_*ard 13
弄清楚了...
我需要一个额外的/之后,file://以便它从文件系统的根目录开始。该死!
最终命令有效:
git svn clone -s file:///data/svn/repo/ /data/git/repo.git
| 归档时间: |
|
| 查看次数: |
7577 次 |
| 最近记录: |