git notes的使用

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}

  

posted @ 2019-08-15 13:09  Jello  阅读(863)  评论(0编辑  收藏  举报