Git Auto-complete not working in bash
<p>I recently installed git. I am using Ubuntu 14.04. However the autocomplete feature is not working. </p>

<p>Whenever I type <code>git i</code> then <kbd>TAB</kbd> it should be <code>git init</code> but it doesn't happen so. I have tried everything mentioned in this <a href="https://stackoverflow.com/questions/12399002/how-to-configure-git-bash-command-line-completion">page</a>, still no success. </p>

<p>Whenever I do <code>git in</code> then <kbd>TAB</kbd> it seems like git is pinging unknown host. Below is the screenshot:</p>

<p><a href="https://i.stack.imgur.com/AZt4j.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AZt4j.png" alt="enter image description here"></a></p>

<p>How do I resolve this?</p>