git - 通过 Visual Studio Code 提交的扩展消息?

标签 git visual-studio-code

我知道,使用命令行我可以做到这一点:

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

有没有办法通过 VS Code 中的 Git 版本控制来做到这一点?

最佳答案

首先,人们常常误解这个命令的实际作用。了解幕后发生的事情很重要。

所以,这是来自 git commit documentation :

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

因此,在 Team Explorer 中提供提交消息时,请尝试在单独的段落中将您的标题与描述分开,它应该与您的命令行示例具有相同的行为。

这个命令并不像看起来那样神奇。查看实时实现。看这个answer这确实很好地说明了这一点。

关于git - 通过 Visual Studio Code 提交的扩展消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51316253/

相关文章:

git - 无法将 refs 推送到远程尝试先运行 pull 以集成您的更改

ubuntu - 命令 'code' 在 'snap/bin/code' 中不可用

macos - 我如何摆脱 sudo 要求?

git - 致命的 : Could not read from remote repository. ;因为静态机器登录

git 远程 url 自动重置

git - 获取同名的远程分支

.net-core - 为什么在 vs 代码 (.NET Core) 中调试时 C# 代码不生成?

visual-studio-code - 如何添加键盘快捷键以在 vscode 上打开 settings.json?

git 验证可信标签

git 同时推送到多个仓库