title: Homebrew can’t link Git during the installation
body: <p>I can’t seem to figure this out. Homebrew can’t link git during the installation. Here’s what Terminal spits out:</p>
  
  <pre><code>==&gt; Downloading http://git-core.googlecode.com/files/git-1.8.4.tar.gz
  Already downloaded: /Library/Caches/Homebrew/git-1.8.4.tar.gz
  ==&gt; make prefix=/usr/local/Cellar/git/1.8.4 sysconfdir=/usr/local/etc CC=cc CFLA
  ==&gt; make CC=cc CFLAGS= LDFLAGS=
  ==&gt; make clean
  ==&gt; make CC=cc CFLAGS= LDFLAGS=
  ==&gt; Downloading http://git-core.googlecode.com/files/git-manpages-1.8.4.tar.gz
  Already downloaded: /Library/Caches/Homebrew/git-manpages-1.8.4.tar.gz
  ==&gt; Downloading http://git-core.googlecode.com/files/git-htmldocs-1.8.4.tar.gz
  Already downloaded: /Library/Caches/Homebrew/git-htmldocs-1.8.4.tar.gz
  ==&gt; Caveats
  The OS X keychain credential helper has been installed to:
    /usr/local/bin/git-credential-osxkeychain
  
  The 'contrib' directory has been installed to:
    /usr/local/share/git-core/contrib
  
  Bash completion has been installed to:
    /usr/local/etc/bash_completion.d
  
  zsh completion has been installed to:
    /usr/local/share/zsh/site-functions
  Warning: Could not link git. Unlinking...
  Error: The `brew link` step did not complete successfully
  The formula built, but is not symlinked into /usr/local
  You can try again using `brew link git'
  
  Possible conflicting files are:
  /usr/local/share/git-core/templates/info/exclude -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/info/exclude
  /usr/local/share/git-core/templates/hooks/update.sample -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/update.sample
  /usr/local/share/git-core/templates/hooks/prepare-commit-msg.sample -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/prepare-commit-msg.sample
  /usr/local/share/git-core/templates/hooks/pre-rebase.sample -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-rebase.sample
  /usr/local/share/git-core/templates/hooks/pre-push.sample -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-push.sample
  /usr/local/share/git-core/templates/hooks/pre-commit.sample -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-commit.sample
  /usr/local/share/git-core/templates/hooks/pre-applypatch.sample -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/pre-applypatch.sample
  /usr/local/share/git-core/templates/hooks/post-update.sample -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/post-update.sample
  /usr/local/share/git-core/templates/hooks/commit-msg.sample -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/commit-msg.sample
  /usr/local/share/git-core/templates/hooks/applypatch-msg.sample -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/hooks/applypatch-msg.sample
  /usr/local/share/git-core/templates/description -&gt; /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/description
  ==&gt; Summary
    /usr/local/Cellar/git/1.8.4: 1339 files, 30M, built in 16 seconds
  </code></pre>
  
  <p>I’ve tried running:</p>
  
  <pre><code>brew link git
  </code></pre>
  
  <p>As well as uninstalling and reinstalling.
  My /etc/paths file is currently as follows:</p>
  
  <pre><code>/usr/local/bin
  /usr/bin
  /bin
  /usr/sbin
  /sbin
  </code></pre>
  
  <p>Any clue?
  Oh, I also have GitHub’s Mac app installed (if that matters?)</p>