By default, the general appearance of the prompt is::
(<branch> <upstream branch> <branch tracking>|<local status>)
The symbols are as follows:
- Local Status Symbols
✔
: repository clean●n
: there aren
staged files✖n
: there aren
files with merge conflicts✖-n
: there aren
staged files waiting for removal✚n
: there aren
changed but unstaged files…n
: there aren
untracked files⚑n
: there aren
stash entries
- Upstream branch
- Shows the remote tracking branch
- Disabled by default
- Enable by setting GIT_PROMPT_SHOW_UPSTREAM=1
- Branch Tracking Symbols
↑n
: ahead of remote byn
commits↓n
: behind remote byn
commits↓m↑n
: branches diverged, other bym
commits, yours byn
commitsL
: local branch, not remotely tracked
- Branch Symbol:
When the branch name starts with a colon:
, it means it's actually a hash, not a branch (although it should be pretty clear, unless you name your branches like hashes :-)