更改 SVN 消息编辑器 [英] Change SVN message editor

查看:39
本文介绍了更改 SVN 消息编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我的同事觉得有必要进入我的开发箱并进行一些代码更改,然后将他的工作提交给 subversion.我从来没有设置提交消息编辑器,突然有一天我忘记添加 -m 句柄,显然他将默认编辑器设置为 emacs.>

由于我对 emacs 一无所知,而且我自己更喜欢 vim,我该如何将 SVN 命令的默认编辑器更改为 vim 在它已经设置之后?我把home目录下的.subversion目录删除了,还是提示我

解决方案

更新您的 SVN_EDITOR 环境变量.你可以试试

echo $SVN_EDITOR

看看这是否在您的 shell 中设置为其他内容 - 在这种情况下,您可能需要查看您的 .bashrc(或类似)文件.

So my co-worker felt it necessary to go onto my development box and do some code changes, then submit his work to subversion. I never set the commit message editor, and all of a sudden, one day I forgot to add the -m handle and apparently he set the default editor to emacs.

Being that I don't know the first thing about emacs and prefer vim myself, how do I go about changing the default editor for SVN commands to vim after it's already been set? I deleted the .subversion directory under the home directory, and it still prompts me.

解决方案

Update your SVN_EDITOR environment variable. You can try

echo $SVN_EDITOR

to see if this is set to something else in your shell - in which case you might want to take a look at your .bashrc (or similar) file.

这篇关于更改 SVN 消息编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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