Cherry pick set of commits from other branch skipping empty commits
<p>I am doing merge bunches of commits using <code>cherry-pick</code></p>

<pre><code>git rev-list --reverse something-begin..something-end | git cherry-pick --stdin
</code></pre>

<p>and then ends up with error message</p>

<pre><code>...
You are currently cherry-picking commit xxxyyy.

nothing to commit, working tree clean
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:

    git commit --allow-empty

If you wish to skip this commit, use:

    git reset

Then "git cherry-pick --continue" will resume cherry-picking the remaining commits.
</code></pre>

<p>I dont want to pick any of these empty commits.</p>

<p>It is very annoying that entering <code>git reset; git cherry-pick --continue</code> for each stop and prompts.</p>

<p>why didn't it provide a <code>--skip-empty</code> option? And then I got to this thread:</p>

<blockquote>
  <p><a href="http://markmail.org/message/yowzaetyu32ulvz7" rel="nofollow noreferrer">http://markmail.org/message/yowzaetyu32ulvz7</a></p>
</blockquote>

<p>It's so bad that I check my git version <code>2.9.3</code> and even found it <code>cherry-pick</code> do not supports either <code>--skip-empty</code> or <code>--empty-commpit=skip</code> or any other.</p>

<p>I had check that <code>git rev-list</code> has an option <code>--remove-empty</code> but it just did not work any help.</p>