Please note that we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update and can still reproduce the problem?brew doctor, fixed all issues and can still reproduce the problem?brew config and brew doctor and included their output with your issue?I wanted to update brew with brew update
output a fatal error
Command output
licardo@LicardodeMacBook-Pro ~ % brew update
fatal: It seems that there is already a rebase-apply directory, and
I wonder if you are in the middle of another rebase. If that is the
case, please try
git rebase (--continue | --abort | --skip)
If that is not the case, please
rm -fr ".git/rebase-apply"
and run me again. I am stopping in case you still have something
valuable there.
Already up-to-date.
licardo@LicardodeMacBook-Pro ~ %
I do not want the error show up. I have tried running git rebase --abort and rm -fr ".git/rebase-apply", but it still shows up.
brew commands)


solved by deleting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/.git/rebase-apply
This directory is difficult to find.
i find this folder "rebase-apply" use commend find / -name "rebase-apply"
@mnich thanks锛乥ut I wish I would never come across such error.
Instead of manually finding the rebase-apply directory, just run brew update-reset instead.
Found this from one of the contributors here.
Most helpful comment
Instead of manually finding the
rebase-applydirectory, just runbrew update-resetinstead.Found this from one of the contributors here.