In Gerrit, under the download section for a change, there is a section that allows you to download the Patch-File:
Using git apply results in:
$ git apply 441eb56b.diff.base64
fatal: unrecognized input
What command do I use to apply this patch?
In Gerrit, under the download section for a change, there is a section that allows you to download the Patch-File:
Using git apply results in:
$ git apply 441eb56b.diff.base64
fatal: unrecognized input
What command do I use to apply this patch?
base64 --decode c6a9dcdb.diff.base64 > c6a9dcdb.diff
git apply c6a9dcdb.diff
(Replace c6a9dcdb with whatever abbreviated commit hash Gerrit gave you.)
Here are possible solutions.
Just copy and paste Cherry Pick's command.
Just copy and paste Checkout's command, and run git format-patch -1 to create the patch which can be used in git am or git apply. You could also run git diff HEAD^..HEAD > xxx.patch to generate a patch, which can be used in git apply.
Download the diff.zip, unzip it, git apply it.
Download the diff.base64, decode it, git apply it.
Run the git fetch part in Checkout or Cherry Pick commands, use git merge,git rebase,git cherry-pick or any command that can manipulates commits to apply the patch you need.
If the patch is to be applied to another branch which can be found in Gerrit, use cherry-pick button to do it.
This is a base64 encode file (see here). You need to decode the file first (see here). I think it's easier to use the Cherry Pick method instead.