Version 58 (modified by nicolasmartin, 6 years ago) (diff) |
---|
SVN quick reference
Last edition on Wikinfo(changed_ts)? by Wikinfo(changed_by)?
For reference, browse to http://svnbook.red-bean.com
Basic use | Advanced features |
---|---|
Working copy## Download a working copy svn {checkout,co} ${URL}[@${REV}] ## Update it svn {up,update} [-r ${REV}] [${WCPATH}] ## Push modifications svn {ci,commit} [-m 'one-liner message'] [${WCPATH}] svn {ci,commit} --include-externals ... ## Append externals Items## Common cmds svn add ${WCPATH} ## Add item under versioning svn {delete,remove,rm} ${WCPATH} ## Remove item svn {st,status} [${WCPATH}] ## List modified items svn diff [${WCPATH}] ## Differences inside items svn revert ${WCPATH} ## Give up edits ## Straightforward UNIX-like cmds svn {cat,list,ls} {${URL},${WCPATH}}[@${REV}] svn mkdir {${URL},${WCPATH}} ## Infos svn log {${URL},${WCPATH}}[@${REV}] ## List commit messages svn info {${URL},${WCPATH}}[@${REV}] ## Detailed ## In case of trouble svn {resolve,resolved} ${WCPATH} ## Ruling conflicted files svn cleanup [${WCPATH}] ## Fix corrupted working copy | Propertieshttp://svnbook.red-bean.com/en/1.7/svn.ref.properties.html ## {proplist,plist} ## {propset,pset} ## {propedit,pedit} ## {propdel,pdel} ## 'svn:keywords Id': record commit infos in routine svn {propset,pset} svn:keywords Id on ${WCPATH} ## 'svn:executable': set permissions for running scripts svn {propset,pset} svn:executable on ${WCPATH} ## 'svn:externals': defining external sources ## - Single external svn {propset,pset} svn:externals ${URL}[@${REV}] ${WCPATH} ## - Multi externals svn {propset,pedit} svn:externals ${WCPATH} Branching## Create a branch (copying) svn copy {${URL},${WCPATH}}[@${REV}] {${URL},${WCPATH}} ## Merging sources svn merge {${URL1},${WCPATH1}}[@${REV1}] [{${URL1},${WCPATH2}}[@${REV2}]] [${WCPATH}] ## Update WC to a new URL ## - Mirror a different branch $i.e$ traversing branch in the same repository (__hazardous!! __) svn switch ${URL}[@${REV}] [${WCPATH}] ## - Relocate to a different URL $i.e$ keep the same branch but move to a new server or URL scheme svn switch --relocate ${URL1} ${URL2} svn relocate ${URL1} ${URL2} |