fatal: It seems that there is already a rebase-merge directory #3244
-
I encountered the following error. I can use "brew update-reset" to bypass the issue for a while. After a while, the issue will come back. Any idea why and how to resolve it? Thanks. fatal: It seems that there is already a rebase-merge directory, and
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
What does |
Beta Was this translation helpful? Give feedback.
-
Try |
Beta Was this translation helpful? Give feedback.
-
I managed to solve this issue by tracking the sub-directory using the command: find /usr/local/Homebrew -name "rebase-merge" It returns the following: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/rebase-merge There are a few files under the sub-directory which are created on 2 May. This seems to correspond to the time when I started encountering the issue last week. I deleted all the files, and also the sub-directory. Now "brew update" and "brew upgrade" are working fine now. |
Beta Was this translation helpful? Give feedback.
I managed to solve this issue by tracking the sub-directory using the command:
find /usr/local/Homebrew -name "rebase-merge"
It returns the following:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/rebase-merge
There are a few files under the sub-directory which are created on 2 May. This seems to correspond to the time when I started encountering the issue last week. I deleted all the files, and also the sub-directory.
Now "brew update" and "brew upgrade" are working fine now.