Git Completion On A Mac
To enable bash for git you need to include the git bash completion script in your profile
cd GIT_SRC/contrib/completion cp git-completion.bash ~/bin echo "source ~/bin/git-completion.bash" >> ~/.profile . ~/.profile
Or simply enough if you have the latest git version from macports, follow this one command to automagically include the bash completion file in your profile shell script
echo "source /opt/local/var/macports/software/git-core/220.127.116.11_0+doc/opt/local/share/doc/git-core/contrib/completion/bash_completion.bash" >> ~/.profile
And then reload your profile
And hey presto!