I find it helpful to be able to see what branch you have checked out when inside a git repo. Just make the following additions to your .bashrc (or any other file that gets sourced on shell creation).
function parse_git_remote_origin {
git config --get remote.origin.url | sed -Ee "s/^(https:\/\/|git@|ssh:\/\/git@)?([^:\/@]+)[\/:].*(\.git)?$/\2/"
}