In the source directory under
contrib/completions there is a bash completions directory. After sourcing that file you can then
git <tab> <tab> and get all the git commands. You can also setup $PS1 to show you what branch is currently active with:
export PS1='[...]$(__git_ps1 "(%s)")[...]'
Make sure you use single quotes on the outside or it won’t work.