How to configure git bash command line completion?

前端 未结 12 1428
猫巷女王i
猫巷女王i 2020-11-28 18:50

E.g. on a fresh ubuntu machine, I\'ve just run sudo apt-get git, and there\'s no completion when typing e.g. git check[tab].

I didn\'t find

12条回答
  •  情歌与酒
    2020-11-28 19:45

    On Github in the Git project, They provide a bash file to autocomplete git commands.

    You should download it to home directory and you should force bash to run it. It is simply two steps and perfectly explained(step by step) in the following blog post.

    code-worrier blog: autocomplete-git/

    I have tested it on mac, it should work on other systems too. You can apply same approach to other operating systems.

提交回复
热议问题