Version 57 (modified by nicolasmartin, 5 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
## Definitions ${REV} # REVision number ${URL} # web address of a path in the SVN repository (repository URL + relative path in the repository) ## Repository URL depends on your role ##- user: http://forge.ipsl.jussieu.fr/nemo/svn ##- developer svn+ssh://${ID}@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn ${WCPATH} # Working Copy PATH
Basic use | Properties | Branching / Merging |
---|---|---|
Download a working copy $ svn {checkout,co} [${WCPATH}] Add/Remove item (file or folder) $ svn {add,del,rm} ${WCPATH} Informations on working copy $ svn info [{${WCPATH},${URL}}][@${REV}] Local status wrt the repository $ svn status [-[qu]] [${WCPATH}] Local changes $ svn {diff,revert} ${WCPATH} Push modififcations to repository $ svn {ci,commit} [-m 'one-liner message'] [${WCPATH}]
List commit messages $ svn log [{${URL},${WCPATH}}[@${REV}]] | svn:keywords Id: record commit infos in routine $ svn propset svn:keywords Id on ${WCPATH} svn:mime-type: syntax highlighting and merging process $ svn propset svn:mime-type ... ${WCPATH} svn:executable: set permissions for scripts $ svn propset svn:executable on ${WCPATH} svn:externals: defining external sources
| Create a branch (copying) $ svn copy {${URL},${WCPATH}}[@${REV}] {${URL},${WCPATH}} Update WC to a new URL
Merging sources $ svn merge {${URL1},${WCPATH1}}[@${REV1}] [{${URL1},${WCPATH2}}[@${REV2}]] [${WCPATH}] Remove a branch $ svn rm {${URL},${WCPATH}} |