How to commit a change with both "message" and "description" with source control in MATLAB to github?
5 ビュー (過去 30 日間)
古いコメントを表示
If I push a change to github via the source control in MATLAB, I go to source control and view and commit changes. However, the window that opens has one comment section that fills both the ''message'' and ''description'' with the same information. I want that the ''message'' is short and the ''description'' is longer with an explanation. Is this possible via source control in MATLAB or only via git bash?
0 件のコメント
採用された回答
Suraj
2023 年 3 月 27 日
As per my understanding, you’d like to draft a comment that contains a message and description that is identified by GitHub.
You can do so in one of two ways –
1 .Using the Command-Line Git Client -
If you happen to use the CLI for Git in MATLAB, then simply use the following command:
!git commit -m “<title>” -m “<description>”
2 .Using the Source Control context menu –
In the dialog box that prompts you to enter a comment, use the following syntax to draft your commit message:
<Enter title here>
<Enter multiline description here>
Note: You must leave a blank line between your title and description.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Git in MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!