Context:
We are using gerrit, and I missed to add a topic for a few gerrit changesets.
One person suggested to do a git fetch origin "refs/notes/*:refs/notes/*", then "edit" the review notes and push back the outcome of that. Turns out: our permissions are setup so that I can fetch notes, but not push them. But the person who has the authority to push such changes fixed the entries that needed fixing, so I am all fine regarding that aspect.
Out of curiosity, I did git fetch origin "refs/notes/*:refs/notes/*" again today, and I get
remote: Counting objects: 333792, done
...
Resolving deltas: 100% (103/103), completed with 44 local objects.
From ssh://whatever....
! [rejected] refs/notes/review -> refs/notes/review (non-fast-forward)
This is like the first time I fetched "notes", and I guess: I really don't need that information locally.
Thus:
- Is there a way to "remove" that fetched content?
- If not, how can I force my local repository to forget about the changes I made locally to "notes"?