tldr/pages/common/git-svn.md

24 lines
556 B
Markdown
Raw Normal View History

2016-01-05 01:03:43 +00:00
# git svn
> Bidirectional operation between a Subversion repository and Git.
2016-01-05 01:03:43 +00:00
- Clone an SVN repository:
2016-01-05 01:03:43 +00:00
`git svn clone {{https://example.com/subversion_repo}} {{local_dir}}`
- Clone a SVN repository starting at a given revision number:
`git svn clone -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`
2016-09-20 07:00:14 +01:00
- Fetch updates from the remote SVN repository without changing the git HEAD:
2016-07-14 14:54:35 +01:00
`git svn fetch`
- Commit back to the SVN repository:
2016-01-05 01:03:43 +00:00
`git svn dcommit`