Use the official git-prompt.sh to add git to the bash prompt.
Add gitconfig.