Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there something like a ~/.svnrc or ~/.svn/* where I can put svn command line options that will be applied to all svn commands I issue on the shell, e.g --no-auth-cache?!

The SVN version is 1.5.1.

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

The first time the svn command-line client is executed, it creates a per-user configuration area. On Unix-like systems, this area appears as a directory named .subversion in the user's home directory.

(Runtime Configuration Area in the Version Control with Subversion online manual.)

There should be a file named config under ~/.subversion that's already heavily commented to get you started. As for your example, the Config section in the online manual has these:

store-passwords

This instructs Subversion to cache, or not to cache, passwords that are supplied by the user in response to server authentication challenges. The default value is yes. Set this to no to disable this on-disk password caching. You can override this option for a single instance of the svn command using the --no-auth-cache command-line parameter (for those subcommands that support it). For more information, see the section called “Client Credentials Caching”.

store-auth-creds

This setting is the same as store-passwords, except that it enables or disables on-disk caching of all authentication information: usernames, passwords, server certificates, and any other types of cacheable credentials.

share|improve this answer
    
+1 Great, exactly what I was looking for. –  ThomasH May 11 '11 at 11:53
add comment

Your Answer

 
discard

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.