1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "GIT-SVNIMPORT" 1 "" "" ""
22 git-svnimport \- Import a SVN repository into git
26 git\-svnimport [ \-o <branch\-for\-HEAD> ] [ \-h ] [ \-v ] [ \-d | \-D ] [ \-C <GIT_repository> ] [ \-i ] [ \-u ] [\-l limit_rev] [ \-b branch_subdir ] [ \-T trunk_subdir ] [ \-t tag_subdir ] [ \-s start_chg ] [ \-m ] [ \-M regex ] <SVN_repository_URL> [ <path> ]
31 Imports a SVN repository into git\&. It will either create a new repository, or incrementally import into an existing one\&.
34 SVN access is done by the SVN
40 git\-svnimport assumes that SVN repositories are organized into one "trunk" directory where the main development happens, "branch/FOO" directories for branches, and "/tags/FOO" directories for tags\&. Other subdirectories are ignored\&.
43 git\-svnimport creates a file "\&.git/svn2git", which is required for incremental SVN imports\&.
49 The GIT repository to import to\&. If the directory doesn't exist, it will be created\&. Default is the current directory\&.
53 Start importing at this SVN change number\&. The default is 1\&.
55 When importing incrementally, you might need to edit the \&.git/svn2git file\&.
59 Import\-only: don't perform a checkout after importing\&. This option ensures the working directory and index remain untouched and will not create them if they do not exist\&.
63 Name the SVN trunk\&. Default "trunk"\&.
67 Name the SVN subdirectory for tags\&. Default "tags"\&.
71 Name the SVN subdirectory for branches\&. Default "branches"\&.
74 \-o <branch\-for\-HEAD>
75 The trunk branch from SVN is imported to the origin branch within the git repository\&. Use this option if you want to import into a different branch\&.
79 Attempt to detect merges based on the commit message\&. This option will enable default regexes that try to capture the name source branch name from the commit message\&.
83 Attempt to detect merges based on the commit message with a custom regex\&. It can be used with \-m to also see the default regexes\&. You must escape forward slashes\&.
87 Specify a maximum revision number to pull\&.
90 Formerly, this option controlled how many revisions to pull, due to
91 SVN memory leaks\&. (These have been worked around\&.)
96 Verbosity: let svnimport report what it is doing\&.
100 Use direct HTTP requests if possible\&. The "<path>" argument is used only for retrieving the SVN logs; the path to the contents is included in the SVN log\&.
104 Use direct HTTP requests if possible\&. The "<path>" argument is used for retrieving the logs, as well as for the contents\&.
106 There's no safe way to automatically find out which of these options to use, so you need to try both\&. Usually, the one that's wrong will die with a 40x error pretty quickly\&.
110 The URL of the SVN module you want to import\&. For local repositories, use "file:///absolute/path"\&.
112 If you're using the "\-d" or "\-D" option, this is the URL of the SVN repository itself; it usually ends in "/svn"\&.
116 The URL of the SVN module you want to import\&. For local repositories, use "file:///absolute/path"\&.
119 <path> The path to the module you want to check out\&.
123 Print a short usage message and exit\&.
128 If \-v is specified, the script reports what it is doing\&.
131 Otherwise, success is indicated the Unix way, i\&.e\&. by simply exiting with a zero exit status\&.
136 Written by Matthias Urlichs <smurf@smurf\&.noris\&.de>, with help from various participants of the git\-list <git@vger\&.kernel\&.org>\&.
139 Based on a cvs2git script by the same author\&.
144 Documentation by Matthias Urlichs <smurf@smurf\&.noris\&.de>\&.
149 Part of the \fBgit\fR(7) suite