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

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-08-24
相关资源
相似解决方案