2014-01-27 19:09:15 +01:00
|
|
|
# svn
|
|
|
|
|
2025-06-29 11:47:23 +03:00
|
|
|
> Subversion client tool.
|
2025-08-16 21:12:49 +03:00
|
|
|
> More information: <https://svnbook.red-bean.com/en/1.7/svn-book.html#svn.ref.svn>.
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Check out a working copy from a repository:
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2025-08-16 21:12:49 +03:00
|
|
|
`svn {{[co|checkout]}} {{url/to/repository}}`
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Bring changes from the repository into the working copy:
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2025-08-16 21:12:49 +03:00
|
|
|
`svn {{[up|update]}}`
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Put files and directories under version control, scheduling them for addition to repository. They will be added in next commit:
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2019-02-01 17:50:52 +01:00
|
|
|
`svn add {{PATH}}`
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Send changes from your working copy to the repository:
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2025-08-16 21:12:49 +03:00
|
|
|
`svn {{[ci|commit]}} {{[-m|--message]}} {{commit_log_message}} [{{PATH}}]`
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2018-11-08 20:15:18 +01:00
|
|
|
- Display changes from the last 10 revisions, showing modified files for each revision:
|
|
|
|
|
2025-08-16 21:12:49 +03:00
|
|
|
`svn log {{[-vl|--verbose --limit]}} {{10}}`
|
2018-11-08 20:15:18 +01:00
|
|
|
|
2024-01-30 01:55:24 -03:00
|
|
|
- Display help:
|
2014-01-27 19:09:15 +01:00
|
|
|
|
2025-08-16 21:12:49 +03:00
|
|
|
`svn {{[h|help]}}`
|