I'm keeping my changelog in git-notes --ref changelog when developing. I'm always putting a note on the merge-to-master commit and push it out to three remotes (git push <remote> refs/notes/changelog) - but every time I forget to push to one remote and fetch from it, the ref gets overridden with some old version:
(Sorry for german locale)
$ git fetch github -p Von github.com:<user>/<repo> + ca36d98d...1f3b9041 refs/notes/changelog -> refs/notes/changelog (Aktualisierung erzwungen) How to prevent that? Is it somehow related to my .git/config?
(excerpt from .git/config):
[remote "github"] url = [email protected]:<user>/<repo>.git fetch = +refs/heads/*:refs/remotes/github/* fetch = +refs/pull/*/head:refs/remotes/github/pr/* push = +refs/notes/changelog:refs/notes/changelog fetch = +refs/notes/changelog:refs/notes/changelog [notes "rewrite"] rebase = true amend = true [notes] rewriteRef = refs/notes/changelog
+in thefetch =andpush =specs in my.git/configallows non-fast-forward pushes of these refs. I'm removing this+now and time will tell whether this was the issue.