Continuing the previous topic .. the main Subversion commands.

I think anything more than a simple “help” to learn all the commands. The “help” of subversion, is cooler than the others because it provides help with svn commands. For example:

 svn help update 


All the arguments of the update will be returned

 update (up): Bring changes from the repository into the working copy.
usage: update [PATH...]

Valid options:
-R [--revision] ARG: ARG (some commands also take ARG1: ARG2 range)
A revision number can be one of:
NUMBER revision number
'{' DATE '}' revision at start date
'HEAD' latest in repository
'BASE' base revision of working copy item
'Committed' last commit at or before BASE
'PREV' revision just before commited
N-[--non-recursive]: obsolete, try - depth = files or - depth = Immediates
- Depth ARG: limit operation by depth ARG ('empty', 'files',
'Immediate' or 'infinite')
- Set-depth ARG: set the depth of the new working copy to ARG ('delete',
'Empty', 'files', 'immediate' or 'infinite')
-Q [--quiet]: shows nothing, or only summary information
- Diff3-cmd ARG: use ARG as merge command
- Force: force operation to run
- Ignore-externals: ignore external definitions
- Changelist ARG: operate only on members of changelist ARG
[apelidos: --cl]
- Editor-cmd ARG: use ARG as external editor
- Accept ARG: specify the action of the automatic conflict resolution
('Postpone', 'base', 'mine-conflict'
'Theirs-conflict', 'mine-full' theirs-full '
'Edit', 'launch')

Global options:
- Username ARG: specify a username ARG
- Password ARG: specify a password ARG
- No-auth-cache: do not keep cache authentication tokens
- Non-interactive: do not use interactive prompt
- Trust-server-cert: accept unknown SSL server certificate without
showing (but only with '- no-interactive')
- Config-dir ARG: read user configuration files from directory ARG
- Config-option ARG: set user configuration option in the format:
FILE: SECTION: OPTION = [VALOR]
For example:
servers: global: http-library = slave 

Well, if you want something more advanced SVN and have questions about how to do it, nothing easier than use this help, which is remarkably complete.

Top Really commands:

  • Checkout

The key to getting everything, “checkout”, which is the command for you “download” the desired repository.

 svn checkout  

This url_repositorio is variable if site can be used:

 file:///home/metal/my_repositorio 

If external and accessed by http:

 http://viniciusmuniz.com:95/my_repository 

ps:. If port 80 is not necessary to inform the same. IN my case, as is the 95 put the “: 95”;

If the SVN protocol is used:

 svn://viniciusmuniz.com / my_repository
or
svn + ssh://viniciusmuniz.com/my_repository 
  • Update

Used to update the repository, as the name implies .. this is not to explain.

  
  • Commit

Follows the same pattern of the update.

 svn commit path> repository to the file you want comitar> 
  • Delete

Unlike the delete is that it can pass the url in place of the path, and thus will be deleted immediately. And if you pass the local path, it will only be deleted after Millet commit.

 svn delete path> repository to the file comitar> 

if you want

Conclusion

I believe that these are the most commonly used commands in everyday life. The only thing to add are the arguments – username and – password, to set the username and password respectively
.
If you have any questions, I am available to clarify them.

Written by vinicius