title: brew installation error after denying keychain access
body: <p>I am trying to install a few packages using brew in my MacOS Monterey version 12.4. While install 'g++' using the following command</p>
  <pre><code>brew install g++
  </code></pre>
  <p>The following prompt popped up asking for my keychain password to allow access.</p>
  <pre><code>git-credential-osxkeychain wants to use your confidential information stored in &quot;github.com&quot; in your keychain.
  The authenticity of &quot;git-credential-osxkeychain&quot; cannot be verified. Do you want to allow access to this item?
  Always Allow | Deny | Allow
  </code></pre>
  <p>I accidentally pressed &quot;Deny&quot; and now I can't install anymore packages using brew.</p>
  <p>The following error pops up</p>
  <pre><code>==&gt; Searching for a previously deleted formula (in the last month)...
  Error: No previously deleted formula found.
  ==&gt; Searching taps on GitHub...
  Error: No formulae found in taps.
  </code></pre>
  <p>The same error is occurring if I try to any other package through brew. I reset my keychain credentials and also re-added github.com to keychain access.</p>
  <p>I tried</p>
  <pre><code>brew doctor
  </code></pre>
  <p>and the following are the warnings:</p>
  <pre><code>Warning: &quot;config&quot; scripts exist outside your system or Homebrew directories.
  `./configure` scripts often look for *-config scripts to determine if
  software packages are installed, and which additional flags to use when
  compiling and linking.
  
  Having additional scripts in your path can confuse software installed via
  Homebrew if the config script overrides a system or Homebrew-provided
  script of the same name. We found the following &quot;config&quot; scripts:
    /Users/sanleypeter/opt/anaconda3/bin/icu-config
  
  ...
  ...
  
  Warning: Unbrewed '.la' files were found in /usr/local/lib.
  If you didn't put them there on purpose they could cause problems when
  building Homebrew formulae, and may need to be deleted.
  
  Unexpected '.la' files:
    /usr/local/lib/libjags.la
    /usr/local/lib/libjrmath.la
  
  Warning: Unbrewed '.pc' files were found in /usr/local/lib/pkgconfig.
  If you didn't put them there on purpose they could cause problems when
  building Homebrew formulae, and may need to be deleted.
  
  Unexpected '.pc' files:
    /usr/local/lib/pkgconfig/jags.pc
    /usr/local/lib/pkgconfig/tcl.pc
    /usr/local/lib/pkgconfig/tk.pc
  
  Warning: Unbrewed static libraries were found in /usr/local/lib.
  If you didn't put them there on purpose they could cause problems when
  building Homebrew formulae, and may need to be deleted.
  
  Unexpected static libraries:
    /usr/local/lib/libtclstub8.6.a
    /usr/local/lib/libtkstub8.6.a
  </code></pre>
  <p>But I don't thing any of these warning are related. I've also tried using</p>
  <pre><code>rm -rf $(brew --repo homebrew/core)
  </code></pre>
  <p>Is there anything I can do to resolve this? Or should I re-install brew and try it again?</p>