Error trying to update oh-my-zsh I have already removed yarn, and continue... I researched, but I couldn't solve it, has anyone experienced the same problem?
Asked
Active
Viewed 2,855 times
2 Answers
8
Your repository of oh-my-zsh
have some file modified (it's a git repository). You can do:
cd "$ZSH"
orcd ~/.oh-my-zsh/
to access the root folder of zshgit add .
to add all files (modified/included) as stagedgit stash -m "your message"
to put all files modified/included in stash, it will clean the repository, but you can catch all the files later.omz update
orupgrade_oh_my_zsh
to upgrade the zsh
After the update you can catch the files that are added in the stash (if you needs) with git stash apply
(the stash will be there still) or git stash pop
(the stash will be removed)
Note: Apply your stash after the update can produce some local conflicts.

Henrique Holtz
- 326
- 2
- 6
0
This looks like a Git warning message - did you changed something down the ".oh-my-zsh" directory ? Especially in the "yarn" subdirectory ?
This Stackoverflow question should help to recover : git: error: you need to resolve your current index first

domi27
- 6,903
- 2
- 21
- 33
-
I don't remember making changes, whenever I open the terminal and have the option to update, I authorize it, and I never had any problems. But this time this error happened, I was surprised to see that it was something from git. I don't know how to solve it. I went to the .oh-my-zsh directory and saw that there is no yarn directory in plugins – Alquimar Almeida Dec 16 '21 at 20:08