Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to pass the SVN password on the command-line or in a text file? I would like to run git-svn via a script?

I know that the username can be passed on the command-line, but is it possible to pass the password as well or have it stored in another location that git-svn can use?

share|improve this question
up vote 2 down vote accepted

Git-svn can use the credentials defined in the ~/.subversion/servers file.

share|improve this answer
I will give that another go-round. – Walter White Nov 28 '11 at 21:07

You can use:

echo $password | git svn --username $username ...
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.