简体   繁体   中英

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM