I am doing merge bunches of commits using cherry-pick
git rev-list --reverse something-begin..something-end | git cherry-pick --stdin
and then ends up with error message
...
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.
I dont want to pick any of these empty commits.
It is very annoying that entering git reset; git cherry-pick --continue
for each stop and prompts.
why didn't it provide a --skip-empty
option? And then I got to this thread:
It's so bad that I check my git version 2.9.3
and even found it cherry-pick
do not supports either --skip-empty
or --empty-commpit=skip
or any other.
I had check that git rev-list
has an option --remove-empty
but it just did not work any help.