Posted By

glends on 10/19/09


Tagged

svn Bash


Versions (?)

SVN setup


 / Published in: Bash
 

  1. # Make new project in SR and take note of SVN checkout URL
  2. # e.g. http://svnsource.com/[project]
  3. # Create directory structure
  4. svn mkdir -m "add trunk" http://svnsource.com/[project]/trunk
  5. svn mkdir -m "add branches" http://svnsource.com/[project]/branches
  6. svn mkdir -m "add tags" http://svnsource.com/[project]/tags
  7.  
  8. # Import directory
  9. svn import /var/www/[site]/dirtoimport http://svnsource.com/[project]/trunk -m "Initial import"
  10.  
  11. # Remove local dir
  12. rm -Rf /var/www/[site]/dirtoimport
  13.  
  14. # Checkout working copy into desired folder
  15. # cd to required location, e.g. $ cd /var/www/[site]
  16. svn checkout http://svnsource.com/[project]/trunk [checkoutfolder]
  17.  
  18. # Go play :)

Report this snippet  

You need to login to post a comment.