tldr/pages/common/git-svn.md

20 lines
398 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 {{http://example.com/my_subversion_repo}} {{local_dir}}`
- Update local clone from the upstream SVN repository:
2016-01-05 01:03:43 +00:00
`git svn rebase`
2016-07-14 14:54:35 +01:00
- Fetch updates from remote SVN repository without changing the GIT HEAD:
`git svn fetch`
- Commit back to SVN repository:
2016-01-05 01:03:43 +00:00
`git svn dcommit`