Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git-SVN clear auth-cache

How do I get git-svn to forget the svn authentication details ?

We have a pairing machine running windows server 2008 on which we have a git repo and we check-in to a central subversion repository. I want git to prompt me for my subversion authentication details each time I check-in.

I have removed the subversion files from under %APPDATA%\subversion\auth\svn.simple. Now whenever I use a regular subversion client I get prompted for my subversion auth but git-svn remembers the credentials still.

Is there anyway I can make it forget the authentication details?

like image 389
Aneesh Avatar asked Feb 03 '10 09:02

Aneesh


People also ask

Where are SVN credentials stored?

On Windows, the Subversion client stores passwords in the %APPDATA%/Subversion/auth/ directory.

What is Git cache?

Consider a Git tutorial — as knowing how/what this is, and how it is used, is very important to using Git. The “cache”, in this context, contains staged changes. The contents are stored on disk, in repo's . git folder.


2 Answers

Clear the svn authentication from %HOMEPATH%\.subversion\auth\svn.simple. This resets svn authentication and git prompts for a username the next time .

Note that earlier I deleted the authentication from under %appdata%\subversion\auth\svn.simple and that did not work.

like image 120
Aneesh Avatar answered Sep 19 '22 17:09

Aneesh


You probably have another instance of subversion installed somewhere else, because git-svn doesn't remember svn authentication by itself and delegates it to subversion.

like image 32
Tobu Avatar answered Sep 21 '22 17:09

Tobu