This translation is provided for informational purposes only. In case of doubt, the German version is authoritative.

gitprompt

← Software

gitprompt: a two-line bash prompt in a terminal shows branch, changes, stash and the distance to the upstream – before and after a git push.

Know the state of your Git repository before you commit or push.

Wrong branch, forgotten stash, a half-finished rebase or a push that never arrived: many Git mishaps happen because the state of the repository is not visible. gitprompt shows it right in your bash prompt – compactly on one line, with the input line left free below.

Less checking, fewer surprises.

  • Everything important at a glance. Branch or tag, operations in progress such as rebase or merge, uncommitted changes, distance to the upstream, stash entries, submodules and worktrees. In supporting terminals the upstream name links to the branch page on GitHub, GitLab, Gitea or Forgejo.
  • Context included. A marker indicates SSH sessions, plus active Python or Go environments, the runtime of long commands and the success of the last command. When the terminal gets narrow, gitprompt shortens less important parts step by step; branch and sync state remain visible.
  • One file, no background service. gitprompt is loaded from ~/.bashrc; outside Git directories your existing prompt stays as it was. For large repositories there is a time budget for git status (default: 0.5 s) with an automatically reduced display. The same file also serves as a status line for Claude Code.

For administrators and developers who work with Git in bash every day – locally and on servers via SSH – and for teams who want a consistent shell environment or a Git status line in Claude Code. A manual page is included in English and German.

Open source, no releases yet. gitprompt is licensed under Apache-2.0 and has been developed since May 2026. There are no releases or version tags yet; installation and updates are done directly from the Git repository. It requires bash, plus jq when used as a Claude Code status line.

gitprompt for your team?

We help you roll it out to workstations and servers, integrate it into Claude Code or adapt it to the way you work. Tell us where you would like to use gitprompt.

Request a quote

News

No releases have been published yet. gitprompt is installed directly from the Git repository and updated with gitprompt update.

Source code and documentation

schlittermann.de    KEYS: GnuPG  |  SSH  |  X509 || Linux User Group Dresden

acd6d9e · 2026-11-06 09:14:34 +0100 · Heiko Schlittermann (ai)

The live chat button uses necessary cookies. By using our website, you agree to their use.  Accept