Basic SVN Commands

From OrangeHRM

Jump to: navigation, search

This article explains some basic SVN commands that would be useful to you when developing in OrangeHRM. For detailed information on commands and functionality, please refer official SVN book. All below explanations are only for SVN command line tool. However once you know these, you can find out similar execution options in TortiseSVN graphical tool.

Contents

Checkout

'checkout' is used to get a checkout from a SVN repository. For getting a checkout from OrangeHRM repository you can run following command in your command line.

svn checkout https://orangehrm.svn.sourceforge.net/svnroot/orangehrm/trunk/php/orangehrm orangehrm

Here first option is the repository URL. The second argument which is given after putting a space to first argument is the name of the local folder that you need to be created and contain repository content. Second argument is optional. If you don't provide it, a local folder will be created with the same name of corresponding repository folder. In this case, it's 'orangehrm'.

You can also use 'co' which is the short-hand version of 'checkout'.

If you want to get a checkout from a particular revision, you can do so by giving '-r' option as below

svn co -r 3696 https://orangehrm.svn.sourceforge.net/svnroot/orangehrm/trunk/php/orangehrm ohrm3696

Update

Diff

Revert

Commit

Add

Delete

Undoing a Committed Change