HomeBrew Installation Error MacOSX 11.1 + 11.2 ARM

Flow & Stocks
1 min readFeb 4, 2021

So I ran into problems installing homebrew on my nem ARM MacBook.

Detailed Error saying GIT Problem cant switch to master:
HEAD is now at 8de10a05b Merge pull request #10472 from
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

First we have to clone only the installer from git onto our Mac:
% git clone https://github.com/Homebrew/install.git
(you can do that via “terminal.app”)

After cloning the install directory which took like 10 seconds you can navigate to “cd install” and execute first ./uninstall.sh to clear all old shit and then ./install.sh to install homebrew

content of install directory
content of install directory

Link for more information on github discussion: Unable to install Homebrew · Discussion #666 · Homebrew/discussions · GitHub

This one worked perfect for me. hope this is helpfull ❤ with love, Peter

--

--