title: Reset git autocomplete cache?
body: <p>I used to have a partially working version of git autocomplete from <a href="https://github.com/git/git/tree/master/contrib/completion" rel="nofollow noreferrer">https://github.com/git/git/tree/master/contrib/completion</a>. I've been messing around and now it is completely broken.</p>
  
  <p>Originally the autocomplete could complete all the git commands and branches; however, it wouldn't show any aliases I had. I tried to fix this by fiddling around a lot. I ended up then breaking it so it wouldn't autocomplete aliases or branches (<code>git checkout &lt;TAB&gt;&lt;TAB&gt;</code> would only show HEAD when there were plenty of branches). Then I ended up really breaking it...</p>
  
  <p>What might have broke it is I believe I ran <code>__git_complete map git_map</code> where <code>map</code> was a git alias I had made in my gitconfig file. Now when I try to do a git autocomplete it only shows a weird list of options shown below. These are a few commands like <code>rebase</code>, aliases I have across my system and global files like <code>s</code> (system) and <code>map</code> (global), and other things I'm not completely sure of.</p>
  
  <hr>
  
  <p><code>git &lt;TAB&gt; &lt;TAB&gt;</code></p>
  
  <pre><code>a                     cm                    master 
  aa                    d                     mergetool 
  ac                    filter-branch         p4 
  acm                   gui                   rebase 
  addnw                 imap-send             request-pull 
  alias                 instaweb              s 
  au                    l                     send-email 
  bisect                lg                    spull 
  c                     ll                    spush 
  ca                    llg                   stash 
  citool                map                   submodule 
  clang-format-mp-3.8   mapall                subtree 
  clang-format-mp-3.9   mapblame              svn 
  </code></pre>
  
  <hr>
  
  <p>Is there a way to just reset all the autocomplete options. Restarting my system, redownloading the completion script all did nothing. It seems the tool still functions, but I've broken what commands it has available to itself. I'd be plenty content to get back to the original state, if there is some kind of cache that could be reset for the autocomplete tools.</p>
  
  <p>I'm on OSX 10.10.5, GNU bash version 3.2.57(1)-release (x86_64-apple-darwin14), git version 2.14.1.</p>
  
  <hr>
  
  <p><strong>EDIT</strong>: what I think I did that really flubbed things up is <code>__git_complete git __git_main</code>. </p>