Subversion is a Software versioning and a Revision control system. That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older
versions of your data or examine the history of how your data changed
1.SVN Checkout / co:
This command is used to check out the project from the server (http://127.0.0.1/repos/test/). You should only need to do this once.
svn checkout “url” (or) svn co “url”
svn checkout http:// 127.0.0.1/repos/test
àIf need to checkout 32 Revision files means
svn checkout –r 32 http:// 127.0.0.1/repos/test
option -r à Revision no
This command prints the status of working directories and files. If you have made local changes
A: File to be added
C: Conflicting changes
D: File to be deleted
G: File to be merged with updates from server
M: File has been modified
R: File to be replaced
G: File to be merged
X: Resource is external to repository
?: File/directory not under version control
!: File/directory missing
~: Versioned item obstructed by some item of a different kind.
3. SVN Revert/Switch:
To overwrite local file(s) with the one in the repository, do an “svn revert”–you would do this if you want to go back to the version of the file in the repository (you will lose all changes you had made since the last commit)
svn revert filename
4. SVN Commit:
Recursively sends your changes to the SVN server. It will commit changed files, added files, and deleted files. Note that you can commit a change to an individual file or changes to files in a specific directory path by adding the name of the file/directory to the end of the command. The -m option should always be used to pass a log message to the command. Please don’t use empty log messages (see later in this document the policy which governs the log messages).
svn commit –m “log message” filename (or) svn ci –m
5. SVN Delete:
Delete file from repository. The UNIX command, “rm file-name” must perform a “commit” to update the repository and local working directory with the changes
svn delete filename(or)directory
also : del, remove or rm
svn commit –m “log msg”
6. SVN DIFF:
Shows file difference between SVN repository and your file changes.
svn diff filename
svn diff -r rev1:rev2 filename
7. SVN Log:
Show the SVNlog messages for a set of revision(s) and/or file(s) and/or all directory contents in repository. Includes list of all files in change Shows the file changes associated with revision number.
svn log filename
svn log url
eGrove Systems Corporation is the leading Web Design and Development firm having a wide range of experience in all vertices like wordpress development, joomla development and we are expertise in developing full featured websites