Here is a list of the TOP-10 most-used SVN commands:
The checkout command is used to copy sources from an SVN repository to a functioning copy. SVN checkout generates a functional copy from which you may modify, delete, or add content.
You may check out a single file, a folder, or the whole project. To checkout, you must know the URL of the parts you wish to checkout.
|svn co http://repo.com/folder.
When you make modifications to the working copy, they are not reflected in the SVN server. To make permanent changes, utilize SVN commit.
|svn commit -m "Commit message."
When you wish to inspect the content of the SVN repository without downloading a functional copy, use svn list.
You must use the SVN add command to add the file to the repository. Will the storage have a recently introduced file when you perform an SVN commit?
|svn add <filename>
The SVN delete command removes a file from the working copy (or repository). When you commit a file to SVN, it is removed from the repository.
|svn delete <filename>
The svn diff command is used to compare two types of a file. The discrepancies between the working copy and the remote (SVN) copy can be discovered. We can also locate the two versions and pathways and other information.
|svn diff filename
|svn diff -r R1: R2 filename
To determine the current state in the working copy, use the svn status command. It shows if the active document has been edited, whether it has been added or removed, and so on.
|svn status path
SVN retains every modification made to your files and folders. Use the SVN log command to see all of the changes made in a file or directory.
|svn log Path
To relocate files from the working directory, use the svn move command. These files, however, can be committed to the SVN server.
|svn move src dest
To update the project’s working copy, use the update command. It propagates changes from the working copy to the repository. By default, it compares the current working copy to the HEAD.
It is also used when other users modify the repository, which requires us to update it.
|svn update Path