Last Updated: February 25, 2016
· novalore

Git status on bash prompt in technicolor

bash-git-prompt: Informative git prompt for bash and fish


Project's complete git status (branch name, difference with remote branch, number of files staged, changed, untracked, etc...) displayed on your command prompt.

My shell right now:

Available symbols:

  • Local Status Symbols
    • : repository clean
    • ●n: there are n staged files
    • ✖n: there are n unmerged files
    • ✚n: there are n changed but unstaged files
    • …n: there are n untracked files
    • ⚑n: there are n stash entries
  • Branch Tracking Symbols
    • ↑n: ahead of remote by n commits
    • ↓n: behind remote by n commits
    • ↓m↑n: branches diverged, other by m commits, yours by n commits

Now that I know it, I would never come back to an "uninformative" prompt!

P.S.: If you're a zsh user, have a look at the original zsh version