1

I want to bring (like cherrypick) a change but I don't want to record commit message and/or change-id. Is there any way to do so?

My command from a gerrit site for cherrypick the change looks as follows, which I ran in my project repository:

git fetch ssh://review-androidsite.com:20000/xyz/project refs/changes/17/3442417/2 && git cherry-pick FETCH_HEAD
flaxel
  • 4,173
  • 4
  • 17
  • 30
Dr. Essen
  • 603
  • 2
  • 9
  • 25

1 Answers1

2

If you want to have the modifications on your disk, but not committed, use -n | --no-commit :

git cherry-pick -n FETCH_HEAD
LeGEC
  • 46,477
  • 5
  • 57
  • 104