码迷,mamicode.com
首页 > 其他好文 > 详细

git notes的用法

时间:2019-07-30 15:55:42      阅读:99      评论:0      收藏:0      [点我收藏+]

标签:mon   off   add   pre   ocs   smi   log   信息   signed   

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参考用法在这里

 

git notes的用法

标签:mon   off   add   pre   ocs   smi   log   信息   signed   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!