I've made a note on the wrong commit by mistake. Is there a easy way to move it in whole to a different commit?
I'm hoping for a way to semantically re-parent a note onto a different commit, But whatever is easiest would be great to know. I suspect the easiest option will be to copy paste the text with a desktop clipboard.
possibly the easiest way is to copy and remove the note:
For example, to move the HEAD notes to the previous commit,
# /!\ Be warned, this may be a destructive act
# git notes copy <source> <dest>
git notes copy HEAD HEAD^
# git notes remove <target>
git notes remove HEAD
P.S. notes are not automatically migrated when amending a commit.
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