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 later do a separate clone, i dont see the note message there. Is there a way to push all the note messages added via git notes command?
To always push notes add push = +refs/notes/*:refs/notes/* to the remote origin section in the Git config.
In order to push a Git branch to remote, you need to execute the “git push” command and specify the remote as well as the branch name to be pushed. If you are not already on the branch that you want to push, you can execute the “git checkout” command to switch to your branch.
It's commit to your local repo, pull to sync(merge) the remote repo with your local repo and then it pushes the merged local repo to the remote repo. – A.sharif.
Push all notes:
git push <remote> refs/notes/*
Fetch all notes:
git fetch origin refs/notes/*:refs/notes/*
[[git-scm.org] (archive)]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With