简体   繁体   中英

How to create svn repository from working copy?

I have working copy

svn co svn://server.com/sw copy

I search something faster than

svnadmin create /tmp/new
svn co file:///tmp/new new_copy
cp -r copy/* new_copy
svn add new_copy/*
svn ci new_copy

You can try svn import , it commits an unversioned file tree to the repository.

I don't know if it will work well with all of the.svn directories in the original tree being imported into the new repository, but you can use a

find . -name '.svn' | xargs rm -rf

to wipe those out before the import if you find they are problematic.

Take a look at the svn import command

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