git completion of commands in bash prompt

I followed the instructions here https://github.com/git/git/blob/master/contrib/completion/git-completion.bash

but to me this line

source ~/.git-completion.sh

works without the “.”¬†

so

source ~/git-completion.sh

(beforehand I made this file executable chmod +x git-completion.sh)

Advertisements