oh-my-zsh 更新

upgrade_oh_my_zsh

当无论是自动更新还是手动upgrade_oh_my_zsh更新oh-my-zsh时,出现下面提示:

Updating Oh My Zsh
error: cannot pull with rebase: You have unstaged changes.
error: please commit or stash them.
There was an error updating. Try again later?

这是因为修改了oh-my-zsh的git文件,可以使用如下方式更新:

cd ~/.oh-my-zsh
git status
git stash
upgrade_oh_my_zsh
git stash pop


声明:本文参考文章:https://www.jianshu.com/p/3520090744e0

你可能感兴趣的:(oh-my-zsh 更新)