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_pathIn 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_dirExample:
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 $
