开发者

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开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜