Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extended message for commit via Visual Studio Code?

I know, with command line I can do this:

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

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

like image 677
MAx Shvedov Avatar asked Jul 13 '18 00:07

MAx Shvedov


1 Answers

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

So, this is from the git commit documentation:

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

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.

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

like image 179
scharette Avatar answered Nov 15 '22 05:11

scharette