git commit -s -m 注釋中的換行 [加入signed-off-by


windows環境下的Git Bash中注釋的換行: 使用單引號。 

或者是在Linux系統里面用終端

git add .
git commit -m '
1. this is the test 
2. update file
'

 git commit -s -m "message"     #用於顯示signed-off-by 

git log日志顯示的內容如下:

 

$ git log
commit c334f02266fed9139f8b07913c442f10938ad92a
Author: sndnvaps <sndnvaps@gmail.com>
Date:   Mon Sep 2 17:05:49 2013 +0800

    1. remove file
    2. update

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM