How to Fix git cherry-pick Stopping on an Empty Commit
If git cherry-pick stops with The previous cherry-pick is now empty, the change in the commit you are picking is already in the current branch. Applying it produces no diff, so Git stops instead of creating an empty commit. If the change is already there, running git cherry-pick --skip skips that commit, the rest of the cherry-pick continues, and the operation finishes.
You see this message when you move a bug fix to a release branch and the same fix was already applied by hand, or when you resolve a conflict and no changes remain. I reproduced it on purpose in a test environment and confirmed the message and the state after the fix.
The test environment was Ubuntu 24.04, Git 2.43.0, and bash 5.2. I ran everything with LANG=C so the messages would be in English. I used only repositories I created locally. I did not test remote operations, editor or GUI tools, Windows, or macOS.
Stopping when the same change is already in the branch
main has three commits. release branches off from the first commit and includes the same edit as main's "Fix business hours" commit, as a separate commit called "Fix business hours error (manual)". The commit messages shown in the output below are in Japanese.
$ git log --oneline --all --graph
* d3df49a 定休日を追加
* 5a5e03b READMEを追加
* c61196a 営業時間を直す
| * 052747b 営業時間の誤りを直す(手作業)
|/
* cb8b66d 最初のコミット
With release checked out, I ran cherry-pick on all three commits from main. It stopped at the first one, c61196a, with the following message. The exit code was 1.
$ git cherry-pick main~2 main~1 main
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
Otherwise, please use 'git cherry-pick --skip'
On branch release
You are currently cherry-picking commit c61196a.
(all conflicts fixed: run "git cherry-pick --continue")
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
nothing to commit, working tree clean
"now empty" means that applying the commit leaves nothing changed. The info.txt on release already has the same content as main, so there is no diff. The explanation of --keep-redundant-commits in the official git cherry-pick reference also says that cherry-picking a commit already in the history produces an empty result, and by default Git stops so you can check it.
At this point the other two commits ("Add README" and "Add closed day") had not been applied. The latest commit on release was still 052747b, the same as before the stop.
$ git log --oneline -3
052747b 営業時間の誤りを直す(手作業)
cb8b66d 最初のコミット
The first line of the message says possibly due to conflict resolution, but this example had no conflict. The same message appears whenever the change is already present, even without a conflict.
git status still shows that a cherry-pick is in progress. git status --short printed nothing, so no working-tree files had changed.
$ git status
On branch release
You are currently cherry-picking commit c61196a.
(all conflicts fixed: run "git cherry-pick --continue")
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
nothing to commit, working tree clean
There are three ways to proceed
The message and git status show three ways to continue from the stop. Each one ends the in-progress cherry-pick state.

Skip with git cherry-pick –skip
The change is already there, so there is usually no reason to create an empty commit. I ran git cherry-pick --skip, which skipped the commit, and the remaining two picks went through.
$ git cherry-pick --skip
[release 04c2f1b] READMEを追加
Date: Thu Nov 26 10:00:00 2026 +0900
1 file changed, 1 insertion(+)
create mode 100644 README.md
[release e602bed] 定休日を追加
Date: Thu Nov 26 10:00:00 2026 +0900
1 file changed, 1 insertion(+), 1 deletion(-)
$ git status
On branch release
nothing to commit, working tree clean
$ git log --oneline -4
e602bed 定休日を追加
04c2f1b READMEを追加
052747b 営業時間の誤りを直す(手作業)
cb8b66d 最初のコミット
The You are currently cherry-picking lines disappeared from git status, leaving only nothing to commit, working tree clean. info.txt now matches main for both the business hours and the closed day.
$ cat info.txt
営業時間: 10時から18時
定休日: 水曜
After the operation finished, I ran git cherry-pick --skip again. It printed error: no cherry-pick in progress, which confirms that no cherry-pick state remains.
When the cherry-pick stopped on a single commit (git cherry-pick main~2), git cherry-pick --skip also finished it and returned the tree to working tree clean.
Keep it as an empty commit with git commit –allow-empty
If you want the history to record that you picked this commit, create an empty commit with git commit --allow-empty, as the message suggests. --no-edit reuses the original commit message without opening an editor.
$ git commit --allow-empty --no-edit
[release 85138a3] 営業時間を直す
Date: Thu Nov 26 10:00:00 2026 +0900
$ git log --oneline -2 --stat
85138a3 営業時間を直す
052747b 営業時間の誤りを直す(手作業)
info.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
85138a3 has no file changes. Because this is part of a multi-commit cherry-pick, you then run git cherry-pick --continue to apply the rest.
$ git cherry-pick --continue
[release 627904a] READMEを追加
Date: Thu Nov 26 10:00:00 2026 +0900
1 file changed, 1 insertion(+)
create mode 100644 README.md
[release 158f4e1] 定休日を追加
Date: Thu Nov 26 10:00:00 2026 +0900
1 file changed, 1 insertion(+), 1 deletion(-)
$ git status
On branch release
nothing to commit, working tree clean
If you run git cherry-pick --continue without creating the empty commit, the same The previous cherry-pick is now empty message appears again, and it stops with exit code 1. git status says run "git cherry-pick --continue", but when the commit is empty, --continue alone does not proceed.
Quit with git cherry-pick –abort
If you want to choose different commits, run git cherry-pick --abort to cancel the whole cherry-pick. As the official reference for –abort describes, this returned the repository to the state before the operation started.
$ git rev-parse --short HEAD
052747b
$ git cherry-pick main~2 main~1 main
The previous cherry-pick is now empty, possibly due to conflict resolution.
(中略)
$ git cherry-pick --abort
$ git status
On branch release
nothing to commit, working tree clean
$ git log --oneline -2
052747b 営業時間の誤りを直す(手作業)
cb8b66d 最初のコミット
It also happens when you resolve a conflict yourself
I also tested the case the message refers to with "conflict resolution", in a different repository. After the first commit, main changed the business hours to 10:00–18:00 ("Fix business hours", c61196a), and release changed them to 10:00–19:00 ("Extend business hours", 4f14bc1). In this repository, main points to "Fix business hours", so running git cherry-pick main on release causes a conflict.
$ git cherry-pick main
Auto-merging info.txt
CONFLICT (content): Merge conflict in info.txt
error: could not apply c61196a... 営業時間を直す
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
$ cat info.txt
<<<<<<< HEAD
営業時間: 10時から19時
=======
営業時間: 10時から18時
>>>>>>> c61196a (営業時間を直す)
定休日: なし
If you resolve the conflict by keeping the current branch's side (HEAD), no change from the picked commit remains. I ran git add and then git cherry-pick --continue, which produced this message.
$ git checkout --ours info.txt
Updated 1 path from the index
$ git add info.txt
$ git cherry-pick --continue
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
Otherwise, please use 'git cherry-pick --skip'
On branch release
You are currently cherry-picking commit c61196a.
(all conflicts fixed: run "git cherry-pick --continue")
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
nothing to commit, working tree clean
The fix is the same. git cherry-pick --skip finished the operation, and git status returned to working tree clean. The business hours on release stayed at 10:00–19:00.
$ git cherry-pick --skip
$ git status
On branch release
nothing to commit, working tree clean
$ git log --oneline -2
4f14bc1 営業時間を延ばす
cb8b66d 最初のコミット
$ cat info.txt
営業時間: 10時から19時
定休日: なし
Check what is already in the branch before picking
I tested this in the same repository as the first example, before running cherry-pick. Before picking several commits at once, you can use git cherry to find commits whose changes are already in the target. When you run it as git cherry -v <target> <source>, commits whose change is already in the target are marked with -, and commits whose change is not there are marked with +.
$ git cherry -v release main
- c61196af7974f12690a85585c3460415c7286e01 営業時間を直す
+ 5a5e03b251b9c8c368513e0dfa1b7f9ab42cf437 READMEを追加
+ d3df49a0bbcac72a98a495dc671af37fed29f377 定休日を追加
A commit gets - even when its hash differs, as long as the diff is the same. The official reference says that equality is determined by comparing the diff with whitespace and line numbers ignored.
With git log, adding the –cherry-pick option and --right-only shows only the commits that still need to be picked.
$ git log --oneline --cherry-pick --right-only release...main
d3df49a 定休日を追加
5a5e03b READMEを追加
When I passed only these two commits to git cherry-pick, they were applied without stopping, and the operation ended with working tree clean.
$ git cherry-pick 5a5e03b d3df49a
[release 04c2f1b] READMEを追加
Date: Thu Nov 26 10:00:00 2026 +0900
1 file changed, 1 insertion(+)
create mode 100644 README.md
[release e602bed] 定休日を追加
Date: Thu Nov 26 10:00:00 2026 +0900
1 file changed, 1 insertion(+), 1 deletion(-)
$ git status
On branch release
nothing to commit, working tree clean
Create empty commits without stopping with –keep-redundant-commits
If you want commits that would become empty to be kept as empty commits without stopping, add --keep-redundant-commits to git cherry-pick. All three were applied without stopping, and "Fix business hours" (85138a3) became a commit with no changes.
$ git cherry-pick --keep-redundant-commits main~2 main~1 main
[release 85138a3] 営業時間を直す
Date: Thu Nov 26 10:00:00 2026 +0900
[release 627904a] READMEを追加
Date: Thu Nov 26 10:00:00 2026 +0900
1 file changed, 1 insertion(+)
create mode 100644 README.md
[release 158f4e1] 定休日を追加
Date: Thu Nov 26 10:00:00 2026 +0900
1 file changed, 1 insertion(+), 1 deletion(-)
The similarly named git cherry-pick --allow-empty did not prevent the stop. git cherry-pick --allow-empty main~2 main~1 main produced the same The previous cherry-pick is now empty message. According to the official reference for –allow-empty, this option only applies to commits that were empty to begin with. To include commits that became empty because of earlier commits, use --keep-redundant-commits.
For basic cherry-pick usage (applying one commit, using -x to record the original commit, and so on), see the separate article, "How to Apply Only Specific Commits with git cherry-pick".





