git svn clone --password pass gives “Unknown option: password”
git-svn, passwords, svn
Solution
`git svn` uses SVN commands directly and thus the internally saved password of SVN.
Run the command:
svn checkout --username user --password pass svn://server/repo
and let SVN remember your password.
If this does not work remove the saved SVN authentications:
$HOME/.subversion/auth/svn.simple/*
Then `git svn clone` will prompt you for the password.
Problem
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).