How to choose --prefix for git svn clone

When I try git-svn clone , I get a warning:

 WARNING: --prefix is not given, defaulting to empty prefix. This is probably not what you want! In order to stay compatible with regular remote-tracking refs, provide a prefix like --prefix=origin/ (remember the trailing slash), which will cause the SVN-tracking refs to be placed at refs/remotes/origin/*. 

--prefix not mentioned in the git chapter in the git-svn chapter . Various web pages recommend using --prefix ( tfnico , objectparters ), but don't explain what I should call. Is this just an arbitrary name, or should it match something in the SVN repository?

+5
source share
1 answer

You should call it the same as a regular git repeater, i.e. pretend that the SVN repository is a remote git repository; what name do you want to give? --prefix=origin/ , as indicated in the warning, is a safe choice if you do not want another remote source.

+6
source

All Articles