如何将本地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命令,并使用 用户名:tokem@github.company.com/repo.git 我得到了这个错误:“使用现有的[svn remote“svn”] svn-remote.svn.fetch已设置为跟踪:refs/remotes/git svn“ 2-使用GitBatch I运行:如何将本地svn工作目录克隆到git repo并上传到github?,git,github,svn,clone,Git,Github,Svn,Clone,任务是从本地svn工作目录迁移到git存储库,并上传到远程github 系统:Windows 10 64位 git svn版本:2.21.0.windows.1(svn 1.9.7) 1-我安装了TortoiseGit,并尝试应用git clone命令,并使用 用户名:tokem@github.company.com/repo.git 我得到了这个错误:“使用现有的[svn remote“svn”] svn-remote.svn.fetch已设置为跟踪:refs/remotes/git svn“
svn log -q svnurl | grep '^r[0-9]' | awk '{print $3}' | sort | uniq > authors.txt
我正确地获得了authors.txt
然后我跑:
git config --global --unset http.proxy
及
我也犯了同样的错误:
使用现有[svn remote“svn”]
svn-remote.svn.fetch已设置为跟踪:refs/remotes/git svn
到目前为止,我无法将本地svn克隆到git,然后上传到github,请帮助
我阅读了git svn文档和svn2git工具指南,但没有帮助
提前感谢,,
如果要在git和svn之间推/拉提交,Mariam
git svn
更适合。对于直接导出,svn2git
是一个更好的解决方案,而且速度更快。git svn
更适合在git和svn之间推/拉提交。对于直接导出,svn2git
是一个更好的解决方案,而且速度更快。GitHub在其帮助页面中推荐了一些工具 警告:有几种“svn2git”工具:
- 这个GitHub帮助页面上推荐的一个是用Ruby实现的
- 中的一个是用C++实现的。
- 这个GitHub帮助页面上推荐的一个是用Ruby实现的
- 中的一个是用C++实现的。
git svn clone file:///C/Users/Documents/GitHub/Repo --authors-file=C://authors.txt C://Users//Documents/GitHub/Repo_Git