Linux下用SVN進行更新等操作時,總是提示輸入用戶名和密碼,很不方便。因此搜了下解決辦法,總結如下:
打開SVN配置文件:
vim /home/<user>/.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操作時就不用再輸入用戶名和密碼了。