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