I make a fix in one branch and want to apply it to another branch. Here’s what I have been doing:
git diff 68610d^ 68610d | git apply
git commit -a -m "SV-656 IP blocking not working (applying patch from 68610d)"
works perfectly but it occurs to me, it doesn’t seem like a very git-like way to do things. In particular, what I am actually doing is only apparent from the comment. This is a very basic activity and I don’t think git would have missed it.
EDIT: is this the function of “cherry-pick”?
The correct way would be
If your really wanted to alter the commit message: