A shell script that formats pretty git sync and dirty status for shell prompt

bill-auger ce5f746c81 housekeeping 6 éve
LICENSE aff9caee8b initial commit 9 éve
README.md bfe4803e99 update README 8 éve
git-status-prompt.sh ce5f746c81 housekeeping 6 éve

README.md

git-status-prompt.sh - pretty format git sync and dirty status for shell prompt

git-status-prompt screenshot

FORMAT:
  (branch-name status-indicators [divergence]) last-commit-date last-commit-message
    where:
      '*' character indicates that the working tree differs from HEAD (per .gitignore)
      '!' character indicates that some tracked files have changed
      '?' character indicates that some new or untracked files exist
      '+' character indicates that some changes are staged for commit
      '$' character indicates that a stash exists
      [n<-->n] indicates the number of commits behind and ahead of upstream

USAGE:
  # ~/.bashrc
  source /path/to/git-status-prompt/git-status-prompt.sh
  PS1="\$(GitStatusPrompt)"