I want to clone a svn repository using git, with a username and password given on the command-line.
I can write:
svn checkout --username user --password pass svn://server/repo
But I can't use --password
with git svn clone
:
git svn clone --username user --password pass svn://server/repo
Unknown option: password
How can I give the password to git svn clone
on the command-line?
Alternatively, is there a kind of --svn-options
switch to git-svn?
P.-S. Note that I need to specify it on the command-line, because there are multiple repos on this server with different user/pass, and svn stupidly assumes that all repos use the same username/password, so half of the time I get svn: Authorization failed
, without it asking for the password, even if I use --username
(it seems to ask for the password sometimes, but it's not robust enough to be used in a script).