【发布时间】:2016-02-02 20:50:36
【问题描述】:
由于我想更新 Oh My Zsh upgrade_oh_my_zsh 时将我的 OSX 升级到 El Capitan,因此出现以下错误:
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
任何人有这方面的经验或知道我的问题的解决方案吗?
【问题讨论】: