2016-01-05 01:03:43 +00:00
|
|
|
# git svn
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Bidirectional operation between a Subversion repository and Git.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://git-scm.com/docs/git-svn>.
|
2016-01-05 01:03:43 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Clone an SVN repository:
|
2016-01-05 01:03:43 +00:00
|
|
|
|
2016-11-28 06:28:49 +00:00
|
|
|
`git svn clone {{https://example.com/subversion_repo}} {{local_dir}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Clone an SVN repository starting at a given revision number:
|
2016-11-28 06:28:49 +00:00
|
|
|
|
2024-08-31 12:06:48 +01:00
|
|
|
`git svn clone {{--revision|-r}} {{1234}}:HEAD {{https://svn.example.net/subversion/repo}} {{local_dir}}`
|
2016-01-05 01:03:43 +00:00
|
|
|
|
2016-09-20 07:00:14 +01:00
|
|
|
- Update local clone from the remote SVN repository:
|
2016-01-05 01:03:43 +00:00
|
|
|
|
|
|
|
`git svn rebase`
|
|
|
|
|
2021-01-07 14:06:38 +00:00
|
|
|
- Fetch updates from the remote SVN repository without changing the Git HEAD:
|
2016-07-14 14:54:35 +01:00
|
|
|
|
|
|
|
`git svn fetch`
|
|
|
|
|
2016-11-28 06:28:49 +00:00
|
|
|
- Commit back to the SVN repository:
|
2016-01-05 01:03:43 +00:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
`git svn commit`
|