LinuxCommandLibrary

git-svn

Bidirectional bridge between Git and Subversion

TLDR

Clone SVN repository

$ git svn clone [svn://server/repo]
copy
Clone with standard layout
$ git svn clone -s [svn://server/repo]
copy
Fetch SVN changes
$ git svn fetch
copy
Rebase on SVN
$ git svn rebase
copy
Commit to SVN
$ git svn dcommit
copy

SYNOPSIS

git svn command [options]

DESCRIPTION

git svn provides bidirectional operation between Git and Subversion repositories. It allows developers to use Git locally while working with an SVN server, enabling full Git workflows for teams still using Subversion.
The command clones SVN repos into Git, syncs changes in both directions, and maps SVN's trunk/branches/tags structure to Git branches.

PARAMETERS

clone URL

Clone SVN repository.
fetch
Fetch from SVN.
rebase
Rebase on SVN commits.
dcommit
Push commits to SVN.
-s, --stdlayout
Standard trunk/branches/tags layout.
-T PATH
Trunk path.
-b PATH
Branches path.
--help
Display help information.

CAVEATS

Some git features don't map to SVN. History rewriting breaks svn tracking. Slower than native git.

HISTORY

git svn enables gradual migration from Subversion to Git, allowing teams to use git locally while maintaining SVN compatibility.

SEE ALSO

git(1), svn(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community