Friday, February 21, 2014

SVN repository - basic

Access to SVN repository is common way how to share files across team. Basic project structure look like:
<project name>
   |-- branches
   |-- tags
   `-- trunk
      |-- src
      |   `-- main
      |      `-- java
      `-- pom.xml

Project itself is stored in directory trunk. Directory tags is used for fixing released project versions. It's useful for further bugfixing. Directory branches is used for project versions. For example there could be feature branche.

Checkout

For checkout project form repository is command

svn co <repo>/trunk/<module> <target-directory> --username <your_username>

I my case it could look like:

svn co https://svn.code.sf.net/p/cubiculus/code/cubiculus-ldraw/trunk .

Revert

When it necessary to overwrite local changes with --HEAD from repository following should by used:

svn revert -R 

Revert is by default not recursive because of that svn have to by instruct by -R to perform reverting recursively.

For more information try to one of this links.

No comments:

Post a Comment