yum install git
Git completion script is installed into /etc/bash_completion.d/ when you
install git, no need to go to github. You just need to use it - add this line to
your .bashrc:source /etc/bash_completion.d/git
feodora git command autocomplete,布布扣,bubuko.com
feodora git command autocomplete
原文:http://www.cnblogs.com/ukouryou/p/3603311.html