Search code examples
gitcommitgit-cherry-pick

cannot cherry-pick a commit that needs an edit


I can cherry-pick a commit without issues, however I need to edit the commit message , here is the command I used with error that I get.

$ git cherry-pick 05f8ab05be965ed05c6drtad237a0oi6f607b71c -e "ticket-548 My cars Module"
fatal: bad revision 'SCOS-818 My cars Module'

Solution

  • A simple git commit --amend after your cherry-pick will allow you to change the commit message.