Git prompt is a third-party contribution to the git repository that enables users to see the status of a repository by appending the branch information to the end of the terminal prompt string.
This functionality is provided by a shell script, git-prompt.sh
, that can be downloaded here:
https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh