赞
踩
今天想升级一下 MBP 的系统,使用命令如下
- brew update
- git: 'credential-osxkeychain' is not a git command. See 'git --help'.
- git: 'credential-osxkeychain' is not a git command. See 'git --help'.
- fatal: could not read Username for 'https://github.com': terminal prompts disabled
然后就没有然后了,系统 update 就卡在这里。
感谢万能的 google,通过 google 搜索出了很多内容,以下是我的解决步骤。
brew upgrade git
git credential-osxkeychain
git config --global credential.helper osxkeychain
下面是我再次 update 的输出。
- % brew update
- git: 'credential-osxkeychain' is not a git command. See 'git --help'.
- git: 'credential-osxkeychain' is not a git command. See 'git --help'.
- fatal: could not read Username for 'https://github.com': terminal prompts disabled
- brew untap homebrew/homebrew-scienError: homebrew/homebrew-science does not exist! Run `brew untap homebrew/homebrew-science` to remove it.
从上面的输出,可以看出,一个包出问题了,而且也告诉你使用 brew untap homebrew/homebrew-science 来删除这个包。
- % brew untap homebrew/homebrew-science
- Untapping homebrew/science...
- Untapped (86 files, 7MB).
删除这个包。再次 update,将得到如下的 Log。
- % brew update
- Already up-to-date.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。