开发者

How to create svn repository from working copy?

开发者 https://www.devze.com 2023-03-16 06:45 出处:网络
I have working copy svn co svn://server.com/sw copy I search something faster than svnadmin create /tmp/new

I have working copy

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

I search something faster than

svnadmin create /tmp/new
svn co开发者_StackOverflow社区 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

0

精彩评论

暂无评论...
验证码 换一张
取 消