I am using Git as many of you do. Also, I don't use any GUI for that — just CLI. So I was wondering: are there any way to make Git commands (git status, git checkout etc.) complete themselves when hitting Tab? Like other CLI commands do.

P.S. I'm using Arch Linux, if that anyhow matters.

  • What shell are you using? Bash?
    – nsg
    Commented Aug 13, 2012 at 9:13
  • Yes, Bash. Sorry for not mentioning that.
    – daGrevis
    Commented Aug 13, 2012 at 9:29
  • You have this file /etc/bash_completion.d/git or not, it belongs to core/git
    – daisy
    Commented Aug 13, 2012 at 11:37

2 Answers 2


Add source /usr/share/git/completion/git-completion.bash to your ~/.bashrc.


  1. Arch Linux Wiki

Run this on the Terminal: source /usr/share/git/completion/git-completion.zsh

The below may be absolute for some users

source /usr/share/git/completion/git-completion.bash

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .