'HEAD is now at 253c43d25 Merge pull request #13060 from Random

Press RETURN/ENTER to continue or any other key to abort: /usr/bin/sudo/usr/sbin/chown -R ahmedkahie: admin /opt/homebrew

Downloading and installing Homebrew.. HEAD is now at 253c43d25 Merge pull request #13060 from RandomDSdevel/revert-130 44-taps-rubocop-config 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 [‹revision>[‹file>.. ]



Solution 1:[1]

It seems like the installation is stuck but you just need to wait until you get this message:

fatal: Could not resolve HEAD to a revision
==> Installation successful!

Ignore the error as the installation should still be successful.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ebanster