Homebrew always prompted fatal: Invalid gitfile format: .git
<p>I'm using oh-my-zsh</p>

<pre><code>➜  ~ brew -h  
fatal: Invalid gitfile format: .git
fatal: Invalid gitfile format: .git

➜  ~ brew update
fatal: Invalid gitfile format: .git
fatal: Invalid gitfile format: .git
</code></pre>

<p>How to fix this problem？</p>