通过Visual Studio Code提交的扩展消息? [英] Extended message for commit via Visual Studio Code?

查看:71
本文介绍了通过Visual Studio Code提交的扩展消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,通过命令行我可以做到这一点:

I know, with command line I can do this:

git commit -m "Title" -m "Description .........."

是否可以通过 VS Code中的Git版本控制来做到这一点?

Is there way to do this via Git Version Control in VS Code?

推荐答案

首先,人们经常会误解该命令的实际作用.了解幕后发生的事情很重要.

First, people are often misunderstanding what this command actually does. It is important to know what happens behind the scene.

因此,这是来自 git commit

如果提供了多个-m选项,则它们的值将串联为单独的段落.

If multiple -m options are given, their values are concatenated as separate paragraphs.

因此,在Team Explorer中提供提交消息时,请尝试在单独的段落中将标题与描述分开,并且其行为应与命令行示例相同.

Therefore when providing a commit message in Team Explorer, try separating your title from your description in separate paragraphs and it should have the same behavior as your command-line example.

此命令看起来并不像 magic 那样.观看实时实施.看到此答案确实显示得很好.

This command is not as magic as it seems. To see a live implementation. see this answer which really shows it well.

这篇关于通过Visual Studio Code提交的扩展消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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