User Tools

Site Tools


subversion
Quick start
svnadmin create /var/svnroot
svn import Local_Dir file:///var/svnroot/ProjectName
svn checkout file:///var/svnroot/ProjectName
cd Project_Name
svn help {command}
Subversion URLs
file:// Direct repository access (on local disk).
http:// Access via WebDAV protocol to Subversion-aware Apache server.
https:// Same as http://, but with SSL encryption.
svn:// Access via custom protocol to an svnserve server.
svn+ssh:// Same as svn://, but through an SSH tunnel.
svn subcommands
add Adds files and directories.
checkout (co) Checks out a working copy from a repository.
cleanup Recursively clean up the working copy.
commit (ci) Send changes from your working copy to the repository.
copy (cp) Copy a file or directory in a working copy or in the repository.
delete (del, remove, rm) Delete an item from a working copy or the repository.
diff (di) Display the differences between two paths.
export Exports a clean directory tree.
help Prints help text.
import Recursively commit a copy of local dir into a repository.
info Print information about PATHs.
list (ls) List directory entries in the repository.
log Displays commit log messages.
merge Apply the differences between two sources to a working copy path.
mkdir Create a new directory under version control.
move (mv, rename, ren) Move a file or directory.
proplist (plist, pl) Lists all properties.
revert Undo all local edits.
status (stat, st) Print the status of working copy files and directories.
update (up) Updates your working copy.
svn switches
-dry­run Run the command without changing anything.
-force Forces a particular subcommand to run.
-message (­m) Specify a commit message MSG.
-recursive (­R) Makes a subcommand recurse into subdirectories.
-verbose (­v) Verbose mode.
subversion.txt · Last modified: 2017/11/09 02:34 by mark