开发者

SVN: how to move the contents of a folder into another folder

开发者 https://www.devze.com 2023-02-28 03:56 出处:网络
H开发者_JAVA百科ow do I move the contents (files) inside one folder (A) into another folder (B) without copying over (B)\'s current contents?

H开发者_JAVA百科ow do I move the contents (files) inside one folder (A) into another folder (B) without copying over (B)'s current contents?

Folder A
 - file 1
 - file 2
 - file 3

Folder B
 - file 4
 - file 5
 - file 6

I'd like the end result to be:

Folder A
 - empty

Folder B
 - file 1
 - file 2
 - file 3
 - file 4
 - file 5
 - file 6


svn move foldera/file*.ext folderb
svn commit -m "move all files in foldera to folderb" .

http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.move.html

If you have files with the same filename in the target directory they will be overwritten. You'll have to inspect and issue the correct svn move command (or multiples of it) for your situation. This works in your local directory so you can inspect the results before you check in. If you use the svn url instead of paths in your working copy it'll be committed immediately.

0

精彩评论

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

关注公众号