首页 > 其他 > 详细

git notes的使用

时间:2019-08-15 13:40:32      阅读:96      评论:0      收藏:0      [点我收藏+]

1. 获取notes

  git fetch origin refs/notes/*:refs/notes/*

2. 设置notes

  2.1 git config --add core.notesRef refs/notes/{name}  (需要注意替换name)

  2.2 export GIT_NOTES_REF=refs/notes/{name} (需要注意替换name)

3. 添加notes

  git notes add <commit-id>

5. 同步notes

  git push origin refs/notes/{name}

6. 查看notes

  git log -p -g refs/notes/{name}

  

git notes的使用

原文:https://www.cnblogs.com/dakewei/p/11357351.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!