没有-m的svn commit [英] svn commit without -m
问题描述
我尝试输入 svn commit
,它将显示一个屏幕,其中包含要添加/更改的文件列表。以及在消息中输入的位置,但是按Enter会在消息中添加换行符,而不是启动提交。
I've tried typing in svn commit
and it will bring up a screen with the list of files being added/changed/etc. as well as a place to enter in a message, but pressing enter will add a newline to the message, not initiate the commit.
是否有热键或某种组合键启动提交(看起来底部有某种类似emacs的控制台)?
Is there a hotkey or some key combination to initiate the commit (it looks like there's some sort of emacs-ish like console at the bottom)? This is on a linux system.
推荐答案
它将打开您的默认编辑器。如果退出编辑器,将不会保存任何日志消息;因此,要使用的组合键取决于您的编辑器。对于Emacs,序列为 Ctrl + X , Ctrl + C 。如果要从文件中提交多行日志消息,则 -v
选项可用于 svn commit
做到这一点。
It will open your default editor; if you quit the editor, no log message will be saved; thus, the key combination to use depends on your editor. For Emacs, the sequence is Ctrl+X, Ctrl+C. If you want to commit a multi-line log message from a file, there is a -F
option to svn commit
to do that.
这篇关于没有-m的svn commit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!