dev@local: ~/project — git
dev@local~/project$git rebase main
error: could not apply commit
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Diagnostics Translation
Git stopped a rebase or cherry-pick because the commit conflicts with your current code.
waiting for resolution...
MediumVersion Control System
Reviewed for reference consistency: April 11, 2026
Code is Safe
SECUREGit has paused the operation to protect your code. No data has been lost or corrupted.
What To Know
This state means Git knows which commit it is replaying, but cannot place its patch cleanly onto the current code snapshot.
Where Did It Fail?
Working Tree
Your local files
add
Staging Index
Prepared changes
commit
Local Repo
Commit history
push/fetch
Remote Server
GitHub/GitLab
The operation was blocked at the staging area. Git cannot prepare or finalize the commit.
Commands That Trigger This
$git rebase main
Running on a branch that has diverged significantly from `main`
$git cherry-pick <hash>
Running for a commit made months ago
Technical Background
01
This is conceptually identical to a merge conflict. Git leaves conflict markers in the files and pauses the operation.
02
After the conflict is cleared, Git still expects the original replay workflow to be finalized as part of that same rebase or cherry-pick state.
Underlying Causes
Applying an old commit to code that has since been heavily modified
Cherry-picking a commit that relies on previous commits you haven't included
Resolving a merge conflict incorrectly during a long rebase
Frequently Asked Questions
You can always cancel the operation and return to your original state by running `git rebase --abort` or `git cherry-pick --abort`.