How to fix git autocomplete in Ubuntu 13.04

In previous version of Ubuntu 12.10 when using git from command line autocomplete of commands, branches, tags... worked. After installing fresh Ubuntu 13.04 and git it does not work. What to set up to make it work again?

Edited


Git is installed using apt-get install git. When I enter:

git i

and press Tab nothing happens. init is not completed.

5

1 Answer

I had the same problem with Ubuntu 13.04

This is how I solved it

To get bash completion you need to reinstall git-core along with bash-completion package and then restart your bash shell

sudo apt-get install git-core bash-completion 

Once successfully installed , just run

bash

By doing so new commands gets initialized in auto completion and it will start working .

Hope this helps

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like