如何将本地 svn 工作目录克隆到 git repo 并上传到 github?

玛丽有生命

任务是从本地 svn 工作目录迁移到 git 存储库并上传到远程 github。

系统:Windows 10 64位

git-svn 版本:2.21.0.windows.1 (svn 1.9.7)

1-我安装了TortoiseGit并尝试应用 git clone 命令并使用提供指向 github url 的原点

用户名:[email protected]/repo.git

我收到此错误:“使用现有的 [svn-remote "svn"] svn-remote.svn.fetch 已设置为跟踪 :refs/remotes/git-svn”

2-使用 GitBatch 我运行:

svn log -q svnurl | grep '^r[0-9]' | awk '{print $3}' | sort | uniq > authors.txt

我正确地得到了authors.txt然后我运行:

git config --global --unset http.proxy 

git svn clone file:///C/Users/Documents/GitHub/Repo --authors-file=C://authors.txt C://Users//Documents/GitHub/Repo_Git

我得到了同样的错误:git-svn windows Using existing [svn-remote "svn"] svn-remote.svn.fetch already set to track :refs/remotes/git-svn

直到现在我无法将本地 svn 克隆到 git 然后上传到 github,请帮忙

我阅读了 git-svn 文档并阅读了 svn2git 工具指南,但没有帮助!

提前致谢,玛丽亚姆

加密西瓜

git-svn如果您要在 git 和 svn 之间推送/拉取提交,则更适合。对于直接导出,svn2git是一个更好的解决方案,而且速度更快。
https://github.com/svn-all-fast-export/svn2git

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章