6

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?

Walter
  • 1,039

2 Answers2

15

You can use:

echo $password | git svn --username $username ...
ChrisF
  • 41,540
7

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

Barend
  • 388