Question: I am trying to cherry-pick a commit from one branch to another. Consider the below scenario.

Branch A -> commit1 -> commit message "12345 Hello World"

I want to add a new message at the beginning of the commit message while doing cherry-pick. So after cherry-pick it should look like,

Branch B -> commit2 -> commit message "98765 ........"

Here 98765 is the extra message I want to add. From Git documentation I found a command "git cherry-pick --edit" but I didn't find any example to understand its proper use.

Answer: 
There isn't much to explain about `git cherry-pick --edit`. If you cherry pick with the `--edit` option, Git will bring up the commit message editor window before making the commit. There, you may customize the commit message however you want.

As to the logistics of *why* this is possible, when you cherry pick a commit you actually are making a *new* commit. So there is nothing extra to prevent you from using any commit message you want.
Thank you everyone for your quick response. I found the below way which helps my case. It will be done in two steps.

1. Cherry-pick without committing to the target using -n.

```
git cherry-pick -n <hash>

```
2. Then perform commit action.

```
git commit -m <message>

```