commands.sh

git svn

all

Bidirectional operation between a Subversion repository and Git.

More info →

Options (1)

-r, --revisionboolean

Clone an SVN repository starting at a given revision number

Example: git svn clone {{[-r|--revision]}} {{1234}}:HEAD {{https://svn.example.net/subversion/repo}} {{local_directory}}

Examples (5)

Clone an SVN repository

git svn clone https://example.com/subversion_repo local_directory

Clone an SVN repository starting at a given revision number

git svn clone [-r|--revision] 1234:HEAD https://svn.example.net/subversion/repo local_directory

Update local clone from the remote SVN repository

git svn rebase

Fetch updates from the remote SVN repository without changing the Git `HEAD`

git svn fetch

Commit back to the SVN repository

git svn commit
made by @shridhargupta | data from tldr-pages