20

In the GitHub Desktop, I can write an indefinite count of lines in the description field for my commit, and this field is distinguished from the commit message:

enter image description here

I know that I can do the same thing in the git bash using:

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

Now I wonder if I can do the same in the Source Control VSCode.
There's a field in a source control tab as the following but I don't know if it's the title of the commit (commit message) or the description:
enter image description here

1 Answer 1

30

1. First way

I found out that the first line represents the commit message, and the lines after representing the description:
enter image description here

Result in the GitHub:
enter image description here

2. Second way

This can be done in another way if I leave the message field (highlighted with green in the following image) empty and hit the commit button:
enter image description here

Then a new tab shows up with the COMMIT_EDITMSG name, and I can add the commit message and the description there:
enter image description here

The result in the GitHub after pushing would be the following:
enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah! It is working. First way is the most suitable way I think.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.