This is my ZSH theme. I've had it for years, this adoption is for use as an antigen theme.
The git prompt looks like this:
- Current git project name (blue: last exit status was ok, red: last exit status failed)
- Time since last commit
- Branch name or commit ref (green: working tree is clean, red: dirty working tree)
- Merge status (↑ is you can push, ↓ is you can pull, ↕ means you have diverged)