Possible to migrate an SVN repo to git that is a local copy only?

喜欢而已 提交于 2020-01-26 04:03:14

问题


I have a clone of an SVN repo on my machine for which the SVN server is unreachable. The program used for cloning is Tortoise SVN for Windows.

Is there any way to import the commit history of the repo into a git repository on github?

I tried

svnadmin dump repo/.svn > svn.dump

Resulting in

svnadmin: E165005: Expected repository format '3' or '5'; found format '12'

Which seems to be misleading, meaning I cannot dump that copy. But are there options other than dumping?


回答1:


I suspect now this is impossible. Local SVN checkout doesn't contain enough information to serve as a repository. There is no history information — it's all on the server.

Your only way is to simply remove .svn subdirectories and run git init && git add . to create a repository with your files. No history.



来源:https://stackoverflow.com/questions/44619435/possible-to-migrate-an-svn-repo-to-git-that-is-a-local-copy-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!