hg commit 打开编辑器
当我运行 hg commit
时,vim 编辑器打开并
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: Leave message empty to abort commit.
HG: --
显示一些路径。这意味着什么?下一步是什么?
when I run hg commit
, vim editor is opened and shows
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: Leave message empty to abort commit.
HG: --
and shows some paths. What does that mean? what is the next step?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在那里输入有关您的提交的任何信息。您输入的消息将显示在提交历史记录
hg log
中。您应该简要描述提交中所做的更改,因为记录的历史记录更容易跟踪。下一步是将临时文件保存在编辑器中以完成提交:
:wq
。为了避免生成编辑器,您可以使用
-m
选项直接在命令行上输入提交消息:hg commit -m "This is a commit message"
。You can enter any information about your commit there. The message you enter will be shown in commit history
hg log
. You should briefly describe the changes made in your commits, because documented history is easier to track.The next step is to save the temporary file in the editor to finalize the commit:
:wq
.To avoid spawning an editor, you can enter the commit message directly on the command line using the
-m
option:hg commit -m "This is a commit message"
.NAME
替换为您的用户名或类似名称。NAME
replaced with your username or similar.