linux svn 用户名存储,Linux(Ubuntu)下保存SVN账户密码
Linux(Ubuntu)下用SVN进行更新等操作时,总是提示输入用户名和密码,很不方便。解决方法1(推荐)不需要修改配置文件,只需要用sudo执行一次svn命令,并记住密码就行了,记住密码需要权限的。sudosvn ci -m "feature: init mimvp_project; reviewer: mimvp.com"解决办法2打开SVN配置文件:vim /home//.subversi
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 搭建方法
参考推荐:
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)