# magicmonty/bash-git-prompt

An informative and fancy bash prompt for Git users

Repository: https://github.com/magicmonty/bash-git-prompt
Canonical: https://ross.abutalabs.com/products/bash-git-prompt
Language: Shell
License: BSD-2-Clause
License Family: permissive
Last push: 2026-04-10T16:26:04+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 76, release rhythm 8, longevity 100
- inputs: {"age_days": 5020, "days_push": 145, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6934, forks 984 (observed 2026-08-28T04:09:51.591140+00:00)

## What it is
An informative bash (and fish) prompt that displays git repository status inline, including branch name, ahead/behind counts, staged/changed/untracked files, conflicts, and stash entries. It is a port of the zsh informative git prompt and is configurable via environment variables.

## Use cases
- show git branch and status in my bash prompt
- see how many commits I'm ahead or behind the remote at a glance
- display staged and unstaged file counts in the terminal prompt
- show merge conflicts and stash count in my shell prompt
- customize a fancy git-aware prompt for bash
- get git status indicators only when inside a repository

## When to choose
- you use bash or fish and want rich git context in your prompt without switching shells or frameworks
- you want a lightweight shell-script solution with no dependencies beyond git
- you need detailed status symbols like ahead/behind, conflicts, and stashes in the prompt

## When to avoid
- you use zsh and can use the original zsh-git-prompt or a zsh prompt framework instead
- you want a full prompt framework with themes, powerline rendering, or async prompt updates
- you prefer minimal prompts without git information

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, version-control, terminal-ui
- domain: developer-tools, version-control
- platform: cli
- tags: bash, git-prompt, shell, fish, prompt-customization, command-line, linux, macos

## Member repositories
- magicmonty/bash-git-prompt (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:51.591140+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:41:15.126080+00:00, confidence not recorded.
  - readme: https://github.com/magicmonty/bash-git-prompt (fetched 2026-08-28T04:09:51.591140+00:00, sha 74b3724d3333)
- Data as of 2026-08-30T08:39:29.467469+00:00.
