svn - Can I import to a subversion repository without importing the parent folder -
i'm sure i'm missing i'm bit out of practice subversion.
say i've got folder full of files:
/projectname/index.html /projectname/img/a.jpg /projectname/img/b.jpg
and want import whole thing subversion, can svn import <foldername> <repository>
when import not index.html , images, parent projectname
folder. when want check out, i'm going checking out folder too.
is there way import folder contents not folder? checkout put index.html , img folder whichever folder doing checkout to? or have import files , folders 1 one?
yes , no...
when use svn import
, importing directory (aka folder). subversion considers directories project locations, , subverion import importing projects.
however, don't have use svn import
:
$ svn co --depth=immeidates $repo/trunk # checkout location project $ cd trunk # go directory $ cp -r /projectname/* . # copy files svn workspace $ svn add -r . # recursively add in project $ svn commit -m"added files trunk" # and, you're done!
Comments
Post a Comment