I am unable to install tree command using 'brew install tree'. I am getting the following output:
>Updating Homebrew...
>fatal: Could not resolve HEAD to a revision
>Warning: No available formula or cask with the name "tree".
>==> Searching for similarly named formulae...
>Error: No similarly named formulae found.
>==> Searching for a previously deleted formula (in the last month)...
>Error: No previously deleted formula found.
>==> Searching taps on GitHub...
>Error: No formulae found in taps.
Note that i am using macOS Big Sur version 11.5.2