w3reference home
SVN Tutorial


Bookmark and Share

SVN Checkout

To read or write a file in the repository, you need to copy that file to your working directory. The checkout command allows you to do this.
Syntax:
$ svn checkout file/directory_path
In the above syntax, you need to specify the path of the file and/or directory that you want to checkout in your working directory.
Example:
$ svn checkout 'file:///home/user/svnrep/'
A    svnrep/test
Checked out revision 1.
$
The repository, svnrep in the above example contains file, test, which has been checked out in our working folder. Here, we can view our file and make the necessary changes in our working directory. Later, we will update the file in the repository as well, so as to reflect the changes there also.

You can also specify the location where you want to checkout a file by specifying the location.
Syntax:

$ svn checkout path_rep path_dir
Example:
svn checkout file:///home/user/svnrep/ sync
A    sync/test
Checked out revision 1.
$
In the above example, we have checked out the file, test, from rep repository to the sync directory. By performing ls command on the sync directory, we can check that.
$ ls sync
test
$
Code Validator
Learn FTP
Color finder
Link Checker
Free web designs
Coming soon!
Interview Questions...
'w3reference : Learn by examples ... Advanced to beginner's tutorials ...'
Ajax: AJAX tutorial1 | Apache: Apache HTTP Server | Restarting Apache | CSS: CSS Border | CSS Syntax | CSS Selector | CSS Comment | CVS: CVS Release | CVS Login | CVS Logout | CVS Annotate | Databases: Rolap Tutorial | OLAP Tutorial | OLTP Tutorial | data warehousing | Expect: HTML: html | Linux: Dot (.) conf files | Linux Mount Point | Linux Filesystem | SSH Tutorial | Linux Commands: cal | cat | cfdisk | chroot | MySQL: MySQL Commands | PHP: PHP Basics | PHP Variables | PHP Output (echo/print) | PHP String Concat | PL/SQL: PL/SQL Data Types | PL/SQL Control Structures | PL/SQL File Extensions | PL/SQL DBMS_OUTPUT package | Python: My first Python program | Shell: Starting Bash | Bash Redirection | Bash Pipes | Bash Variables | SQL: SQL Transactions | SQL Constraints | SQL Drop | SQL Union & Union All | SVN: svn architecture | SVN Repository | SVN Import | SVN Checkout | Tech: soap | Web Designing: Web Hosting | HTML/XHTML/CSS code validator | Learn FTP | Search Engine Optimization Tips | www: XML: XML vs HTML | XML Syntax | XML Tags, Elements and Attributes | XML Namespaces |
Sitemap | Disclaim | Privacy Policy | Contact | ©2007-2009 w3reference.com All Rights Reserved.