Monday, January 16, 2012

TortoiseSVN for version control in software programming


TortoiseSVN a free open-source Windows client for the Apache™ Subversion® version control system. TortoiseSVN can be downloaded from:
http://tortoisesvn.net/downloads.html

TortoiseSVN is integrated into the Windows explorer. To use TortoiseSVN, you need to open the Window explorer and right-click any folder to bring up the command  menu. Example to use TortoiseSVN:
1) create a new folder C:\svn_repos
2) Now right click on the new folder and from the context menu choose TortoiseSVN → Create Repository here. Then click Create folder structure. A list of files and folders are created.
3) Now I want to import my project folder C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_CESEI into file repository
Right-click C:\Users\jiansen\Desktop\CAS\jiansen_dir\www_CESEI
select TortoiseSVN->Import,
(Note: I did not see Import in my old folder www,
I created a new folder www_CESEI then I can not see TortoiseSVN->Import)
Under URL of repository, enter:
file:///c:/svn_repos/trunk/www_cesei
check Enable Auto-properties.
4) Create a new working directory for a day-to-day working directory:
C:\Users\jiansen\Desktop\www_CESEI_dev
Right click this folder, click SVN Checkout,
Enter the following URL to checkout:
file:///c:/svn_repos/trunk/www_cesei
5) Editing a file fms_connection.php in working directory:
C:\Users\jiansen\Desktop\www_CESEI_dev
Right click the file and select TortoiseSVN->diff and
TortoiseSVN's file compare tool starts, showing you exactly which lines have changed.
6) After you are happy with the change, right click the file and select  SVN Committee.

No comments:

Post a Comment