The use git notes

1. Obtain notes

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

2. Set notes

  2.1 git config --add core.notesRef refs / notes / {name} (note alternative name)

  2.2 export GIT_NOTES_REF = refs / notes / {name} (note alternative name)

3. Add notes

  git notes add <commit-id>

5. Sync notes

  git push origin refs/notes/{name}

6. Review notes

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

  

Guess you like

Origin www.cnblogs.com/dakewei/p/11357351.html