Posted By

jmiller on 10/20/09


Tagged

svn folder move branch trunk


Versions (?)

Move entire folder with SVN


 / Published in: SVN
 

This is useful if you do not currently have a trunk/branch structure and would like to move everything into a new trunk.

  1. cd ~/path/to/old/directory
  2. svn mkdir new_directory
  3. for file in *; do svn move "$file" new_directory; done

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: jmiller on October 20, 2009

*Note: This does not seem to move the .htaccess file (and I assume any other hidden files).

Posted By: jmiller on November 12, 2009

Use the following to move the .htaccess or other file from the root into the new_directory:

svn move .htaccess new_directory

You need to login to post a comment.