git notes的用法

1. notes翻译为中文评注

2. notes出现的作用

  避免某一次commit的内容修改导致当前以及随后的commit发生变化,相当于在当前的commit后面追加一些信息,如:

  某次commit的内容如下: (git log 1234567890123456789012345678901234567890 )

    commit 1234567890123456789012345678901234567890

    Author: Jello Smith <Jello_Smith@163.com>
    Date: Mon Jun 1 13:13:13 2013 +0800
      It is an example!!!

      Signed-off-by: Jello Smith <Jello_Smith@163.com>

  对该commit加上评注后: (git notes add 1234567890123456789012345678901234567890)  

    commit 1234567890123456789012345678901234567890

    Author: Jello Smith <Jello_Smith@163.com>

    Date: Mon Jun 1 13:13:13 2013 +0800

      It is an example!!!

      Signed-off-by: Jello Smith <Jello_Smith@163.com>

    

    Notes:

      Version: v0

      Date: 01-06-2013 

3. notes参考用法在这里

原文地址:https://www.cnblogs.com/dakewei/p/11270279.html