title: gitk: command not found
body: <p>Environment: Mac OSX 10.10. When I was trying to use <code>gitk</code>, it shows:</p>
  
  <pre><code>Coda-2:~ Coda$ gitk
  -bash: gitk: command not found
  </code></pre>
  
  <p>I think the reason is the old version of <code>git</code>. Here is some information, and I have already typed <code>brew update</code>.</p>
  
  <pre><code>Coda-2:~ Coda$ git --version
  git version 1.9.3 (Apple Git-50)
  Coda-2:~ Coda$ brew install git 
  Warning: git-2.4.0 already installed, it's just not linked
  </code></pre>
  
  <p>What is this message: <code>it's just not linked</code>? </p>
  
  <p>Furthermore, I check the path of <code>git</code>:</p>
  
  <pre><code>Coda-2:~ Coda$ which git
  /usr/bin/git
  </code></pre>
  
  <p>It should be in <code>/usr/bin/local/git</code>? How to fix it?</p>
  
  <h3>UPDATE</h3>
  
  <p>I figure it out, thank @TimCastelijns.</p>
  
  <p><code>brew doctor</code> said:</p>
  
  <pre><code>Warning: You have unlinked kegs in your Cellar
  Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
  those kegs to fail to run properly once built. Run `brew link` on these:
  
      git
  </code></pre>
  
  <p>So, I typed:</p>
  
  <pre><code>Coda-2:~ Coda$ brew link git
  Linking /usr/local/Cellar/git/2.4.0... 220 symlinks created
  </code></pre>
  
  <p>Then I typed <code>gitk</code>, and it worked and the path changed to <code>/usr/local/bin/git</code>. However, when I want to check the version of <code>git</code>. It still showed the old version, why?</p>
  
  <pre><code>Coda-2:~ Coda$ git --version
  git version 1.9.3 (Apple Git-50)
  </code></pre>