checkout / co SVN Command

How to use checkout / co SVN (Subversion) Command in Linux / Windows?

Explanation


checkout / co command is used to checkout a project and its current files from the svn server.

Usage:

svn checkout http://<servername>/testsvn
or
svn co http://<servername>/testsvn

Example:

  • Now you can download the projects from the server using below command.
    svn checkout http://192.168.0.255/testsvn or
    svn co http://192.168.0.255/testsvn
    192.168.0.255 - is the server name or ip in which the svn repository is running.
    testsvn - is the project name.

  • Consider that there was a file in the server repository for this project named 'test1.txt'.
    The following files will be downloaded from 'test1.txt' using checkout cmd,
    - folder named 'testsvn'.
    - a file inside the testsvn folder named 'test1.txt'.
    - svn folder inside testsvn containing all the repository and revision details of the files.

Result:


From the above cmd, the files inside 'testsvn' were checked out.

Ask Questions

Ask Question