Linux下用SVN进行更新等操作时,总是提示输入用户名和密码,很不方便。因此搜了下解决办法,总结如下:
1.修改配置文件
打开SVN配置文件:
vim /home//.subversion/config
找到如下代码:
### Set store-passwords to 'no' to avoid storing passwords in the ### auth/ area of your config directory. It defaults to 'yes', ### but Subversion will never save your password to disk in ### plaintext unless you tell it to (see the 'servers' file). ### Note that this option only prevents saving of *new* passwords; ### it doesn't invalidate existing passwords. (To do that, remove ### the cache files by hand as described in the Subversion book.) # store-passwords = no
将这行:
store-passwords = no
更改为:
store-passwords = yes
这样在下次进行SVN操作时就不用再输入用户名和密码了。
2.清除本地缓存帐号信息
有的时候,在已checkout出来的版本,修改配置文件后,还是每次提示需要输入密码,则可以考虑清理本地帐号缓存实现刷新配置
svn之linux下清除svn的用户名和密码
问题:之前用的svn账号权限不够,需要使用别的账号,所以提出需求——怎么使用新的svn账号进行操作
方法一:
linux下删除~/.subversion/auth即可清除之前的用户名和密码:
rm -rf ~/.subversion/auth
以后再操作svn会提示你输入用户名,这时就可以使用新的了