0% found this document useful (0 votes)
219 views2 pages

Subversion (SVN) Cheatsheet

This document provides a cheat sheet for using the Subversion version control system. It lists common Subversion commands for accessing repositories, checking out and updating working copies, adding/committing/deleting files, viewing logs and differences, and resolving conflicts. It also includes shortcuts for common command arguments and descriptions of item/property status codes.

Uploaded by

Leo Sama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
219 views2 pages

Subversion (SVN) Cheatsheet

This document provides a cheat sheet for using the Subversion version control system. It lists common Subversion commands for accessing repositories, checking out and updating working copies, adding/committing/deleting files, viewing logs and differences, and resolving conflicts. It also includes shortcuts for common command arguments and descriptions of item/property status codes.

Uploaded by

Leo Sama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Subversion Cheat Sheet

by Dave Child (DaveChild) via cheatography.com/1/cs/3/

Subversion Resources Subversion Property Commands Subversion Commit Changes (cont)

Homepage http://subversion.apache.org/ $ svn proplist "/path" $ svn commit -N "/path"

SVN Book http://svnbook.red-bean.com/ List properties Commit without recursion

$ svn propset PROP VAL "/path" $ svn import "/path/to/folder" "/path"


Subversion Components
Set PROP to VAL for path. Import and commit local folder
svn Command line program
$ svn propget PROP "/path"
svnversion Revision of working copy Subversion Deleting, Copying and Moving
Get value of PROP
svnlook Inspect repository
$ svn delete "/path"
$ svn propedit PROP "/path"
svnadmin Repository administration Delete path
Edit PROP
svndumpfilter Filter repository stream
$ svn -m "Delete message" delete "/path"
$ svn propdel PROP "/path"
mod_dav_svn Apache module
Delete with log message
Delete PROP
svnserve SVN server (SVN protocol)
$ svn copy "/source" "/target"
svnsync Mirror repository
Subversion Checkout Working Copy Copy source to target

Subversion Protocols $ svn checkout "/path/to/repository" $ svn move "/source" "/target"

file:// Local machine Checkout working copy into current folder Move source to target

http:// HTTP (Apache) $ svn checkout "/path/to/repository"


"/path/to/folder" Subversion Logs and Blame
https:// HTTPS (SSL)
Checkout working copy into target folder $ svn log "/path"
svn:// SVN (svnserve)
Show log messages for path
svn+ssh:// SVN over SSH
Subversion Update Working Copy
$ svn blame "/path"
Subversion Help $ svn update "/path" Show commits for path
Update path
$ svn help
$ svn update -r9 "/path" Subversion Revert Changes
$ svn help import

Show help for "import" command Update path to revision 9 $ svn revert "/path"

Revert changes to path


The $ symbol is used to denote commands to
Subversion Add Files and Folders
be typed. $ svn revert -R "/path"
$ svn add *
Revert changes recursively
Subversion Repository Administration Add all items, recursively

$ svnadmin create "/path/to/repository" $ svn add itemname Subversion Differences Between Files

Create new repository Add itemname (if folder, adds recursively) $ svn diff "/path/file"

$ svnadmin setlog "/path" -r 7 message.txt $ svn add * --force $ svn diff "/path/file@2" "/path/fil e@7"
Change log message for revision 7 to Force recursion into versioned directories $ svn diff -r 2:7 "/path/folder"
contents of file message.txt

$ svnadmin dump "/path/to/repository" > Subversion Commit Changes Subversion Merge Changes

filename
$ svn commit "/path" $ svn merge -r2:7 "item" "/path"
Dump repository to file (backup) Apply diff between revisions 2 and 7 of
Commit changes to path
$ svnadmin load "/path/to/repository" < filename "item" to path
$ svn commit -m "Message" "/path"
Load repository from file (restore) $ svn merge "url1" "url2" "/path"
Commit with log message
Apply diff between "url1" and "url2" to path

By Dave Child (DaveChild) Published 25th February, 2012. Sponsored by Readability-Score.com


cheatography.com/davechild/ Last updated 12th May, 2016. Measure your website readability!
www.getpostcookie.com Page 1 of 2. https://readability-score.com
Subversion Cheat Sheet
by Dave Child (DaveChild) via cheatography.com/1/cs/3/

Subversion Miscellaneous Commands

$ svn resolve "/path"

Resolve conflict

$ svn cleanup "/path"

Remove locks and complete operations

$ svn lock "/path"

Lock path

$ svn unlock "/path"

Unlock path

$ svn status "/path"

Get path status

$ svn cat "/path"

View file contents

Subversion Item and Property Statuses

No modifications (blank)

A Addition

D Deletion

M Modified

R Item replaced

C In conflict

X Externals definition

I Ignored

? Not in repository

! Item missing

~ Object type changed

Subversion Argument Shortcuts

-m "Message" --message

-q --quiet

-v --verbose

-r --revision

-c --change

-t --transaction

-R --recursive

-N --non-recursive

By Dave Child (DaveChild) Published 25th February, 2012. Sponsored by Readability-Score.com


cheatography.com/davechild/ Last updated 12th May, 2016. Measure your website readability!
www.getpostcookie.com Page 2 of 2. https://readability-score.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy