$ ./guess_the_languageGit
Git · medium · #46

What does the -x flag add?

git cherry-pick -x de475b9
  1. Names the source commit in the message
  2. A reflog entry on the source branch
  3. A tag on the source commit
  4. A merge parent pointing at the source commit
-x appends "(cherry picked from commit ...)" to the new commit message so the origin can be traced.
Play Git ▸