我是第一次安装brew,当我运行brew doctor时出现一个错误:
Warning: You have uncommitted modifications to Homebrew
If this a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
cd /usr/local && git stash
Run Code Online (Sandbox Code Playgroud)
如果我cd到/ usr/local并运行"git status",我得到:
On branch master
nothing to commit (working directory clean)
Run Code Online (Sandbox Code Playgroud)
如果我运行:cd/usr/local && git stash,我得到:
No local changes to save
Run Code Online (Sandbox Code Playgroud)
我应该忽略这个警告吗?我在OSX 10.8上.
joh*_*lem 12
我有同样的问题,上述建议都没有摆脱对我的警告.
似乎Homebrew会抱怨未提交/未隐藏的更改,即使它们尚未添加到提交中,如果它们尚未添加到提交中,则git stash将不会执行任何操作.
所以我必须做的是:
$ cd /usr/local
$ git add . # add the unsaved changes homebrew is complaining about
$ git stash # stash the changes, now that they're in a commit
$ brew update # update homebrew
$ brew doctor # running brew doctor now outputs 'raring to brew'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4325 次 |
| 最近记录: |