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}

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-03-06
  • 2021-07-12
  • 2021-11-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2021-05-29
相关资源
相似解决方案