This article demonstrates SVN's general operating procedures, do not inadvertently update the status.
First look at SVN help, and several important SVN commands such as "Checkout, Commit, status" will be displayed.
You also want to see Help for a single command, and you can perform SVN <subcommand>.
1.SVN help
sodino@sodino-desktop:~/svntest$ svn help
usage:svn <subcommand> [options] [args]
Subversion command-line client, version 1.6.6.
Type ' svn help <subcommand> ' in a specific subcommand.
[... ... To omit ...]
Available subcommands:
add
Checkout (CO)
cleanup
commit (CI)
Delete (Del, remove, RM)
Info
list (LS)
log
status (Stat, ST)
Update (UP)
[...] To omit ...]
To perform checkout, you need the SVN sync address as follows:
2.SVN checkout
sodino@sodino-desktop:~/template/svntest$ svn checkout http://svn.sodino.cn:8228/svn/sodinolab/ Trunk/client/andbookmark
a andbookmark/default.properties
a andbookmark/.classpath A Andbookmark/proguard.cfg
a andbookmark/assets
a andbookmark/.project
a andbookmark/ Androidmanifest.xml
a andbookmark/src
a andbookmark/src/and
a andbookmark/src/ And/bookmark
a andbookmark/src/and/bookmark/actandbookmark.java
a andbookmark/res
a andbookmark/res/values
A andbookmark/res/values/strings.xml
a andbookmark/res/drawable
a andbookmark/res/ Drawable/icon.png
A andbookmark/res/layout
Checked out revision 1551.
Checkout can then view status information for the current synchronization project, using SVN info. Specifically as follows:
3.SVN Info
sodino@sodino-desktop:~/template/svntest$ SVN info andbookmark/
Path:andbookmark
url:http:/ /svn.sodino.cn:8228/svn/sodinolab/trunk/client/andbookmark
Repository root:http://svn.sodino.cn:8228/svn/ Sodinolab
Repository uuid:acf65315-cec2-45ce-afeb-57a46c1df7d6
revision:1551
Node kind:directory
Schedule:normal
Last Changed Author:sodino last
Changed rev:1551
Changed date:2012-06-11 18:09:03 +0800 (one, June 20 12)
When the project is in the editing/maintenance process, a file is modified, added, deleted, and the SVN status Path command is used to view the changed files. You must use this command to view the current project detail status each time you perform a commit to ensure that the resource files are complete when the project is synchronized.
4.SVN status andbookmark/
sodino@sodino-desktop:~/template/svntest$ svn status andbookmark/
? Andbookmark/project.properties
? Andbookmark/readme.txt
m andbookmark/default.properties
m andbookmark/.classpath
? Andbookmark/src/and/bookmark/bookmark.java
M Andbookmark/src/and/bookmark/actandbookmark.java
Will state ". "Files to the version library
5.SVN Add Andbookmark/.../.../*.*
After you perform the "SVN add path" command for the new file, the status appears as follows
?: Not in the control of SVN; M: Content modified; C: conflicting; A: scheduled to join the repository; K: Locked
List all changed files that have not been synchronized
sodino@sodino-desktop:~/template/svntest$ svn status andbookmark/
m andbookmark/default.properties
m Andbookmark/.classpath
A andbookmark/project.properties
M Andbookmark/src/and/bookmark/actandbookmark.java
a Andbookmark/src/and/bookmark/bookmark.java
A andbookmark/readme.txt
Submitting the publication using the ' SVN commit path-m ' message to this action ', the parameter '-M ' is required.
6.SVN commit andbookmark/-M "adds Bookmark.java and Readme.txt"
The remaining common SVN commands are as follows:
Reference article: http://blog.csdn.net/nancy198696/article/details/4059726
7.SVN List Path
Show all files and directories that belong to the version library under the path directory
SVN log path
Show SVN log for current path
r1553 | Sodino | 2012-06-14 12:25:18 +0800 (iv. June) | 1 line
add annotation
-------------------------------------------------- ----------------------
r1552 | sodino | 2012-06-14 12:04:11 +0800 (iv. June) | 1 line
increased Bookmark.java and re Adme.txt
SVN diff-r m:n Path
Compare differences between version m and version n
SVN merge-r m:n Path
Merge the differences before version m and version n