error: you need to resolve your current index first plugins/macos/spotify: needs merge
Asked Answered
O

1

7

I am trying to uninstall a zsh plugin (macos), I have modified the .zshrc file and removed macos from the plugin list, and deleted the macos file in path ~/.oh-my-zsh/plugins, but now when ever I initialize zsh, the following error always come out. How do I fix this?

error: you need to resolve your current index first plugins/macos/spotify: needs merge

Ona answered 13/2, 2022 at 7:33 Comment(1)
I've also tried brew cleanup and brew doctor, those didn't work. Furthermore, I can't upgrade_oh_my_zsh due to the error above.Ona
S
24

Just reset it:

cd ~/.oh-my-zsh; git reset --hard
Sartorial answered 31/3, 2022 at 14:54 Comment(3)
what are the consequences of git reset --hard?Ona
It worked in my case, although I am not sure what I have to reconfigure afterwardsOna
Be careful of this one - I'd rather not nuke all my custom changes back to factory defaults. See gitkraken.com/learn/git/…Sale

© 2022 - 2024 — McMap. All rights reserved.