- Download git autocompletion script using following CURL command
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
- Open
~/.bash_profile
file (~/.bash_rc
if use Linux) and add the following
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash