from 下拉框多个值提交_Git commit 多行信息提交
生活随笔
收集整理的這篇文章主要介紹了
from 下拉框多个值提交_Git commit 多行信息提交
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
git commit可接受多個消息標志(-m)來允許多行提交
原文地址:https://www.stefanjudis.com/today-i-learned/git-commit-accepts-several-message-flags-m-to-allow-multiline-commits/原文作者:Stephan Schneider
在命令行上使用git時,您可能已經使用了消息標志(-m)。 它允許開發人員在調用git commit時內聯定義提交消息。
git commit -m "my commit message"我不是這種方法的最大支持者,因為我更喜歡在vim中編輯提交消息(我僅用于編寫提交消息)。 它使我有機會仔細檢查我提交的文件。
今天,我了解到 git commit命令接受多個消息標志。
事實證明,您可以多次使用 -m 選項。 git文檔包括以下段落:
如果給出了多個-m選項,則它們的值被串聯為單獨的段落如果運行以下命令
git co -m "commit title" -m "commit description"這可以實現多行提交。
Author: stefan judis Date: Tue Jul 7 21:53:21 2020 +0200commit titlecommit descriptiontest.txt | 01 file changed, 0 insertions(+), 0 deletions(-)您可以使用多個 -m 標志來創建“多行提交”,而我不得不承認,在某些情況下這可能非常方便。
編輯:一些人指出,通過打開引號,按Enter并再次關閉帶引號的提交,可以實現相同的提交結構,包括標題和正文(多行)。
git commit -m "commit title > > commit description" [master 2fe1ef8] commit title1 file changed, 0 insertions(+), 0 deletions(-)create mode 100644 test-2.txt總結
以上是生活随笔為你收集整理的from 下拉框多个值提交_Git commit 多行信息提交的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 微信一天能转账多少钱啊?
- 下一篇: 51单片机auxr寄存器_MCS-51单