Linux(Ubuntu)下用SVN进行更新等操作时,总是提示输入用户名和密码,很不方便。
解决方法1(推荐)
不需要修改配置文件,只需要用sudo执行一次svn命令,并记住密码就行了,记住密码需要权限的。
sudosvn ci -m "feature: init mimvp_project; reviewer: mimvp.com"
解决办法2
打开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操作时就不用再输入用户名和密码了。
SVN 搭建方法
参考推荐: