git
merge_error
ai_generated
true
error: Your local changes to the following files would be overwritten by merge
ID: git/local-changes-overwritten
90%Fix Rate
88%Confidence
380Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 2 | active | — | — | — |
Root Cause
Uncommitted local changes conflict with incoming changes.
genericWorkarounds
-
92% success Stash changes before merge/pull
git stash && git pull && git stash pop
Sources: https://git-scm.com/docs/git-stash
-
88% success Commit your changes before pulling
git add -A && git commit -m 'wip' && git pull
Sources: https://git-scm.com/docs/git-commit
Dead Ends
Common approaches that don't work:
-
Use git checkout -- . to discard all changes
88% fail
Permanently loses all uncommitted work
-
Delete the conflicting files
90% fail
Loses work and may break the project
Error Chain
Leads to:
Preceded by: