Friday, 19 April 2013

svn create new project


Create a directory in your working copy:
$ svn mkdir newdir
A         newdir
Create one in the repository (this is an instant commit, so a log message is required):
$ svn mkdir -m "Making a new dir." http://svn.red-bean.com/repos/newdir

Committed revision 26.

From the directory containing the commonsproj/ directory, issue the svn import
          command.  Example (all on one line!): 

          
            svn import commonsproj 
              svn+ssh://mylogin@svn.berkeley.edu/svn/berkeley/projects/commons/my/new/project/path 
              -m "original commit"

If you want create branch from trunk or tag

svn copy svn+ssh://host.example.com/repos/project/trunk \
           svn+ssh://host.example.com/repos/project/branches/NAME_OF_BRANCH \
      -m "Creating a branch of project"
DELETE:  svn delete PATH
svn delete URL     
1)           Items specified by PATH are scheduled for deletion upon next commit.
2)          Files which are not committed immediately removed from the working copy unless the –-keep-local option is given.
3)           The command will not remove any un-versioned or modified items; use the – force option to override this behavior.
4)           Items specified by URL are deleted from the repository via an immediate commit. Multiple URLs are committed automatically.
$ svn delete http://my.sp.com/svn/sp/trunk/SPFV-Api -m"to re-fresh"
$ svn delete myFile
D                myFile
svn commit –m”deleted files”
Deleting     myFile
Committed …………………………

$ svn delete  - - force myfile

No comments: