bash 如何在没有用户名和密码提示的情况下运行SVN导出

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15429674/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 04:52:31  来源:igfitidea点击:

How to run SVN export without the prompt of username and password

bashsvnshellcommand

提问by user2166351

Is it possible for me to do an SVN export without being prompt for the user and pass?

我是否可以在不提示用户并通过的情况下进行 SVN 导出?

I give my username and pass, in the command:

我在命令中给出我的用户名并通过:

svn export --username bavhbavh --password blahblah svn://svn.someSite.com/folder/folder2/exportFile"

But when running it, it still seems to ask me for a username and pass.

但是运行的时候,好像还是要我输入用户名,pass。

回答by blamonet

I do this same thing in one of my build scripts, although I also use this parameter --non-interactive(do no interactive prompting) and it seems to work pretty well.

我在我的一个构建脚本中做了同样的事情,虽然我也使用了这个参数--non-interactive(不做交互提示),它似乎工作得很好。

So your command would look something like this:

所以你的命令看起来像这样:

svn export --username bavhbavh --password blahblah --non-interactive svn://svn.someSite.com/folder/folder2/exportFile"