git: how to push messages added by git notes to the central git server?

前端 未结 1 887
生来不讨喜
生来不讨喜 2020-12-07 13:39

it seems like there is no proper documentation regarding git notes. I have added some notes to one of the commit using git notes add command. but when i push the commit, and

1条回答
  •  执笔经年
    2020-12-07 14:40

    According to here [git-scm.org], you can use

    git push  refs/notes/*
    

    to push all notes. Fetching can be done with

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

    0 讨论(0)
提交回复
热议问题