magicmonty/bash-git-prompt — pull request #61 by MatiasFernandez (2014-07-17 15:17:57+00:00)
Title: Modify gitstatus.sh to detect local branch without tracking remote

This a Pull Request to add a feature in gitstatus.sh script to detect if the current branch have a remote tracking one. I think it's an useful feature because it's common to forget to do the first push of a branch, and when that happens the prompt doesn't show any commit behind or ahead. So maybe you think you are "in sync" with the remote, but the truth is that no remote tracking branch exists