我从命令行使用Git,并尝试在提交消息(使用git commit -m "")中添加换行符而不进入Vim.
这可能吗?
我最近使用GitHub并下载了GitHub for Mac.
我注意到你可以使用GitHub for Mac添加"扩展描述".如何使用命令行添加扩展描述?
我可以在现有提交中添加扩展描述吗?
在 GitHub Desktop 中,我可以在提交的描述字段中写入不确定的行数,并且该字段与提交消息不同:
我知道我可以使用以下命令在 git bash 中执行相同的操作:
git commit -m "Title" -m "Description ..........";
Run Code Online (Sandbox Code Playgroud)
现在我想知道我是否可以在源代码管理 VSCode 中执行相同的操作。
源代码管理选项卡中有一个字段,如下所示,但我不知道它是提交的标题(提交消息)还是描述:

我花了一天时间这样做:
要删除第4步,如何在提交时自动关闭问题?
我知道,使用命令行我可以这样做:
git commit -m "Title" -m "Description .........."
Run Code Online (Sandbox Code Playgroud)
有没有办法通过VS代码中的Git版本控制来做到这一点?
我git在 Windows 上使用,当我使用commit command in the command prompt, my Notepad++ opens up and asks me to put in a commit message as follows:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
Run Code Online (Sandbox Code Playgroud)
This is great, but I want to be able to separate the message title from its body. When I …