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

 

 

 

posted @ 2013-09-02 17:11  sndnvaps  阅读(13476)  评论(0编辑  收藏  举报