Easy Tutorial
❮ Svn Tag Svn Revert ❯

SVN Checkout Operation


In the previous chapter, we created a repository named tutorialpro01 with the URL svn://192.168.0.1/tutorialpro01, and the svn user user01 has read and write permissions.

We can use this URL to perform a checkout operation on the repository from the client.

svn checkout http://svn.server.com/svn/project_repo --username=user01 The above command will produce the following result:

root@tutorialpro:~/svn# svn checkout svn://192.168.0.1/tutorialpro01 --username=user01
A    tutorialpro01/trunk
A    tutorialpro01/branches
A    tutorialpro01/tags
Checked out revision 1.

After a successful checkout, a copy directory named tutorialpro01 is generated in the current directory. To view the checked out contents:

root@tutorialpro:~/svn# ll tutorialpro01/
total 24
drwxr-xr-x 6 root root 4096 Jul 21 19:19 ./
drwxr-xr-x 3 root root 4096 Jul 21 19:10 ../
drwxr-xr-x 2 root root 4096 Jul 21 19:19 branches/
drwxr-xr-x 4 root root 4096 Jul 21 19:19 .svn/
drwxr-xr-x 2 root root 4096 Jul 21 19:19 tags/
drwxr-xr-x 2 root root 4096 Jul 21 19:19 trunk/

If you want to view more information about the repository, execute the info command.

❮ Svn Tag Svn Revert ❯