自从我将OSX升级到El Capitan以来,当我想要更新Oh My Zsh upgrade_oh_my_zsh
时,我遇到了以下错误:
Upgrading Oh My Zsh
fatal: Not a git repository (or any of the parent directories): .git
There was an error updating. Try again later?
我以前从未使用过git,在互联网上搜索这个致命错误时,他们建议在/.oh-my-zsh
文件夹中执行git init
。 运行此命令后,当我再次尝试运行upgrade_oh_my_zsh
时,又出现了一个新的致命错误。
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我不知道这是否与此相关,但当我打开终端(iTerm2)时,我也收到了这个通知:
/Users/peter/.zshrc:1: command not found: Path
有谁对此有经验或者知道解决方案?