1. 找尋檔案,安裝git及locate後,我們要找到git-completion.bash
# yum install mlocate
# updatedb
# locate git-completion.bash
/usr/share/doc/git-1.8.3.1/contrib/completion/git-completion.bash
2. 把git-completion copy 到根目錄
# cp /usr/share/doc/git-1.8.3.1/contrib/completion/git-completion.bash ~/
3. 在 .bashrc 最下面加上
QUOTE:
source ~/git-completion.bash然後再重新登入後,就有 git autocomplete 功能啦!