跳转至

oh-my-zsh 更新

📖 阅读信息

阅读时间:1 分钟 | 中文字符:85 | 有效代码行数:10

⚡ AI摘要 (GLM)

oh-my-zsh更新时出现特定提示,原因是修改了git文件。可按指定方法更新,解决此问题。

Bash
upgrade_oh_my_zsh

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

Bash
1
2
3
4
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文件,可以使用如下方式更新:

Bash
1
2
3
4
5
cd ~/.oh-my-zsh
git status
git stash
upgrade_oh_my_zsh
git stash pop

转载自:lvhy踩坑之路的oh-my-zsh 更新

💬 评论

评论系统加载中...