Version Control with SVN

1. Create trunk from proj_src(source code) :

$ mv /root/proj_src /home/projects/
$ cd /home/projects/
$ svn import proj_src svn://192.168.1.119/proj/trunk -m "create proj trunk"


2. To checkout the project :
$ svn co svn://192.168.1.119/proj


3. Add tags and first release :
$ cd /home/projects/proj/
$ svn mkdir tags
$ svn cp trunk tags/release_0.1.0


4. Generate working copies for developers, special offer or someone else :
$ svn mkdir branches
$ svn cp tags/release_0.1.0 branches/kim
$ svn cp tags/release_0.1.0 branches/cat
$ svn cp tags/release_0.1.0 branches/special-x


5. When finished :
$ svn ci -m "everything is ready"


6. Delete ?
$ svn delete svn://192.168.1.119/branches/special-x -m "delete branch"


7. Merge revisions of branches into trunk
$ svn merge -r 50:100 svn://192.168.1.119/vtigercrm/branches/kim ./trunk/
$ svn ci -m "merge 50-100 from branches/kim to trunk"


8. Revert merge
$ cd trunk/
$ svn log
$ svn merge -r 101:50 .
$ svn ci -m "revert merge 100-50 from trunk"

Posted in SVN | Tagged | Leave a comment