为svn存储库创建别名 [英] make alias for svn repository

查看:148
本文介绍了为svn存储库创建别名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用多重存储库。

是否可以为存储库创建别名。
所以我可以用它们代替原始URL?

I am working with multiply repositories.
Is it possible to create an alias for repositories. So I can use them instead of raw urls?

即代替:

svn ls https://mysvnrepos.abs/trunk

我可以使用:

svn ls myrepo


推荐答案

如果使用Linux或Mac OS,则可以为Shell定义全局变量。

If you use Linux or Mac OS, you can define a global variable for your shell.

export myrepo="https://mysvnrepos.abs/trunk"

然后您可以致电

svn ls $myrepo

如果要保留此变量,请将上面的行添加到〜/ .bashrc文件中(创建它(如果不存在)。

If you want to keep this variable, add the line above to your ~/.bashrc file (create it, if it does not exist).

这篇关于为svn存储库创建别名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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