It looks like Git is trying to use the atom editor to open a merge message, but it can't find
the atom command on your
system. You can resolve this by changing the default editor for Git or bypassing the editor
prompt.
1. Set a Different Default Editor (e.g., VS Code)
You can set VS Code as your default editor for Git:
git config --global core.editor "code --wait"
This will configure VS Code to be used as the editor when Git requires it. After running this,
you can retry the git
pull:
2. Complete the Merge Without Opening an Editor
Since you don’t want to keep local changes, you can skip the commit message prompt and force the
merge with --no-edit:
Or if the merge is already in progress, you can complete it directly:
After that, run:
The above worked 🫡
If the merge is still causing issues, you can abort it and retry with the discard option:
git merge --abort
git reset --hard HEAD
git pull origin main
This will abort the current merge attempt, reset your local changes, and pull the latest changes
from the main branch.