Error Fatal Ambiguous Argument Refs Remotes Origin Master

[Solved] Error Fatal Ambiguous Argument Refs Remotes Origin Master | Shell - Code Explorer | yomemimo.com
Question : 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.

Answered by : snippets

# Remove it because you can't `brew untap homebrew/core`
rm -fr $(brew --repo homebrew/core)
# install it
brew tap homebrew/core

Source : | Last Update : Sat, 13 Nov 21

Question : install homebrew without errors like : ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.

Answered by : ramez-hamdy

Run unintsall script :- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
Set Git Compression :- git config --global core.compression 0
Set Git buffer size :- git config --global http.postBuffer 1048576000
Run installation script :- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
###
Install homebrew.
solve errors such as below:
: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
###

Source : https://github.com/Homebrew/install/issues/548 | Last Update : Thu, 06 Jan 22

Question : error fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.

Answered by : healthy-hummingbird-xrq6pxk75v7x

cd /opt
rm -fr homebrew
run the code too

Source : | Last Update : Sun, 27 Mar 22

Answers related to error fatal ambiguous argument refs remotes origin master unknown revision or path not in the working tree

Code Explorer Popular Question For Shell