从控制台使用 Subversion 时如何保存密码 [英] How to save password when using Subversion from the console

查看:18
本文介绍了从控制台使用 Subversion 时如何保存密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有办法在从控制台执行 svn 操作时保存我的 Subversion 密码.控制台是我唯一的选择.当我尝试执行任何 Subversion 操作时,例如svn commit,每次都提示输入账号密码.有没有办法以某种方式保存这个密码,这样我就不必每次都重新输入?

I was wondering if there is a way to save my Subversion password when doing svn operations from the console. The console is the only option that I have. When I try to do any Subversion action, e.g. svn commit, it prompts for the account password every time. Is there a way to save this password somehow so that I don't have to retype it every time?

推荐答案

~/.subversion/config 中,你可能有 store-passwords = no.将其更改为 yes(或者只是将其注释掉,因为它默认为 yes),并且下次您将密码提供给 Subversion 时,它应该保存它.

In ~/.subversion/config, you probably have store-passwords = no. Change it to yes (or just comment it out because it defaults to yes), and the next time you give Subversion your password it should save it.

您可能希望确保 ~/.subversion/config 的所有者和权限正确(无公共或组访问权限;600).

You might want to ensure that the owner and permissions of ~/.subversion/config are correct (no public or group access; 600).

这篇关于从控制台使用 Subversion 时如何保存密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆