Preserve git notes when rewriting history with git filter branch -


For some reasons, I need to rewrite the whole history of my GIT repository to change committer_id of every commit. However, I noted at least each of the commitments and to use the gitter-filter-branch to log the committer_id logically create a new commute, the notes would be left behind to make a copy of the notes Is there a new way?

It starts asking similar questions, but there is no solution in 2011.

Thank you for your help!

The problem is that git-notes work for the way you want to do it There is a need for some additional configurations. You probably need this configuration variable

  git config notes. From the documentation:  

GIT_NOTES_REWRITE_REF

writes the documentary RF / note / commit

, which will copy the original copy For note does the copy. There should be a colon-delimited list of riffs or globes.

If not set in the environment, the list of notes to copy depends on the notes. Basically, you should have permission to transfer notes to new people from the original command, which you are re-writing. You can also see this stack overflow thread for a long explanation:


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -