Hello everyone, I am back again with your demand for SVN commands. This time, we will go through all usual commands which may be needed while using SVN :). So, let’s not waste our time, and let’s go and check the commands one by one :). svn help The name itself suggests ‘HELP’
Hello everyone, I am back again with your demand for SVN commands. This time, we will go through all usual commands which may be needed while using SVN
.
So, let’s not waste our time, and let’s go and check the commands one by one
.
svn help
The name itself suggests ‘HELP’. Yes, it will assist the new/old user to use SubVersion. There are a lot more subcommands like checkout, commit, update, add, blame, revert, relocate, resolve, … etc., which can be used with
svn help
like svn help <
subcommand>
to get individual brief details for that subcommand.svn ls <code><</code>URL of Repo<code>></code> OR svn list <code><</code>URL of Repo<code>>
This command will list all the directories or files list, in the repository.
Options
1.
2.
3.
4.
5.
6.
1.
-r [--revision] ARG
-> ARG (some commands also take ARG1:ARG2 range), a revision argument can be NUMBER(revision number), DATE(revision at start of the date), HEAD(latest in repository), BASE(base rev of item’s working copy), COMMITTED(last commit at or before BASE), PREV(revision just before COMMITTED)2.
-v [--verbose]
-> Print extra information3.
-R [--recursive]
-> Descend recursively, same as –depth=infinity4.
--depth ARG
-> Limit operation by depth ARG (‘empty’, ‘files’, ‘immediates’, or ‘infinity’)5.
--incremental
-> Give output suitable for concatenation6.
--xml
-> Output in XMLsvn co <code><</code>URL of Repo<code>></code> OR svn checkout <code><</code>URL of Repo<code>>
This command will checkout a working copy from the given repository.
Options
1.
2.
3.
4.
5.
1.
-r [--revision] ARG
-> ARG (some commands also take ARG1:ARG2 range), a revision argument can be NUMBER(revision number), DATE(revision at start of the date), HEAD(latest in repository), BASE(base rev of item’s working copy), COMMITTED(last commit at or before BASE), PREV(revision just before COMMITTED)2.
-q [--quiet]
-> Print nothing, or only summary information3.
--depth ARG
-> Limit operation by depth ARG (‘empty’, ‘files’, ‘immediates’, or ‘infinity’)4.
--force
-> Force operation to run5.
--ignore-externals
-> Ignore externals definitionssvn up <code><</code>URL of Repo<code>></code> OR svn update <code><</code>URL of Repo<code>>
This command will help to update the working copy, which will finally sync with the Subversion repository.
Options
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
1.
-r [--revision] ARG
-> ARG (some commands also take ARG1:ARG2 range), a revision argument can be one of NUMBER(revision number), DATE(revision at start of the date), HEAD(latest in repository), BASE(base rev of item’s working copy), COMMITTED(last commit at or before BASE), PREV(revision just before COMMITTED).2.
--depth ARG
-> Limit operation by depth ARG (‘empty’, ‘files’, ‘immediates’, or ‘infinity’)3.
--set-depth ARG
-> set new working copy depth to ARG (‘exclude’, ‘empty’, ‘files’, ‘immediates’, or ‘infinity’)4.
-q [--quiet]
-> Print nothing, or only summary information5.
--diff3-cmd ARG
-> Use ARG as merge command6.
--force
-> Force operation to run7.
--ignore-externals
-> Ignore externals definitions8.
--changelist [--cl] ARG
-> Operate only on members of changelist ARG9.
--editor-cmd ARG
-> Use ARG as external editor10.
--accept ARG
-> Specify automatic conflict resolution action (‘postpone(p)’, ‘working’, ‘base’, ‘mine-conflict(mc)’, ‘theirs-conflict(tc)’, ‘mine-full(mf)’, ‘theirs-full(tf)’, ‘edit(e)’, ‘launch(l)’)11.
--parents
-> Make intermediate directoriessvn add <code><</code>File Name<code>>
This command will help to add files or directories, subdirectories or symlinks to repositories.
Options
1.
2.
3.
4.
5.
6.
7.
8.
1.
--targets ARG
-> Pass contents of file ARG as additional args2.
--depth ARG
-> Limit operation by depth ARG (‘empty’, ‘files’, ‘immediates’, or ‘infinity’)3.
-q [--quiet]
-> Print nothing, or only summary information4.
--force
-> Force operation to run5.
--no-ignore
-> Disregard default and svn:ignore property ignores6.
--auto-props
-> Enable automatic properties7.
--no-auto-props
-> Disable automatic properties8.
--parents
-> Add intermediate parentssvn delete <code><</code>File Name<code>>
This will help user to delete an item from working copy or working repository.
Options
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
1.
--force
-> Force operation to run2.
-q [--quiet]
-> Print nothing, or only summary information3.
--targets ARG
-> Pass contents of file ARG as additional args4.
-m [--message] ARG
-> Specify log message ARG5.
-F [--file] ARG
-> Read log message from file ARG6.
--force-log
-> Force validity of log message source7.
--editor-cmd ARG
-> Use ARG as external editor8.
--encoding ARG
-> Treat value as being in charset encoding ARG9.
--with-revprop ARG
-> Set revision property ARG in new revision using the name[=value] format10.
--keep-local
-> Keep path in working copysvn copy <code><</code>From File Path<code>></code> <code><</code>To File Path<code>>
This command is required to copy a file or directory in a working copy or in the repository. It needs to paths as argument, one is from file path and another is to file path.
Options
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
1.
-r [--revision] ARG
-> ARG (some commands also take ARG1:ARG2 range), a revision argument can be NUMBER(revision number), DATE(revision at start of the date), HEAD(latest in repository), BASE(base rev of item’s working copy), COMMITTED(last commit at or before BASE), PREV(revision just before COMMITTED)2.
-q [--quiet]
-> Print nothing, or only summary information3.
--ignore-externals
-> Ignore externals definitions4.
--parents
-> Make intermediate directories5.
-m [--message] ARG
-> Specify log message ARG6.
-F [--file] ARG
-> Read log message from file ARG7.
--force-log
-> Force validity of log message source8.
--editor-cmd ARG
-> Use ARG as external editor9.
--encoding ARG
-> Treat value as being in charset encoding ARG10.
--with-revprop ARG
-> Set revision property ARG in new revision using the name[=value] formatsvn move <code><</code>From File Path<code>></code> <code><</code>To File Path<code>>
This command is used to move one file or item from one place to another in a working copy or repository. This is purely equivalent to first copy the file content from one place to another and then delete the file from where copy content has been made.
Options
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
1.
-r [--revision] ARG
-> ARG (some commands also take ARG1:ARG2 range), a revision argument can be NUMBER(revision number), DATE(revision at start of the date), HEAD(latest in repository), BASE(base rev of item’s working copy), COMMITTED(last commit at or before BASE), PREV(revision just before COMMITTED)2.
-q [--quiet]
-> Print nothing, or only summary information3.
--force
-> Force operation to run4.
--parents
-> Make intermediate directories5.
-m [--message] ARG
-> Specify log message ARG6.
-F [--file] ARG
-> Read log message from file ARG7.
--force-log
-> Force validity of log message source8.
--editor-cmd ARG
-> Use ARG as external editor9.
--encoding ARG
-> Treat value as being in charset encoding ARG10.
--with-revprop ARG
-> Set revision property ARG in new revision using the name[=value] formatsvn status <code><</code>File Path<code>>
This command is used to print the status of working copy files and directories.
Options
1.
2.
3.
4.
5.
6.
7.
8.
9.
1.
-u [--show-updates]
-> Display update information2.
-v [--verbose]
-> Print extra information3.
--depth ARG
-> Limit operation by depth ARG (‘empty’, ‘files’, ‘immediates’, or ‘infinity’)4.
-q [--quiet]
-> Don’t print unversioned items5.
--no-ignore
-> Disregard default and svn:ignore property ignores6.
--incremental
-> Give output suitable for concatenation7.
--xml
-> Output in XML8.
--ignore-externals
-> Ignore externals definitions9.
--changelist [--cl] ARG
-> Operate only on members of changelist ARG
But, there are still some more commands we have, which will be helpful while dealing with one project/application. So, STAY TUNED for my next blog, that will cover some more commands. Hope you will like this blog.
Thanks
and will be happy to listen from you
.
Source from
http://www.codeproject.com/Articles/833810/Version-Control-with-Subversion-Tortoise-SVN-II
No comments :
Post a Comment