# git-pretty

> An implementation of Justin Hileman's chart from "Changing History, or How to Git Pretty"

Latest version **5.0.1** (published 2026-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-pretty
pnpm add git-pretty
yarn add git-pretty
bun add git-pretty
```

Provides the command `git-pretty`.

## Health

**Score 55/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities; has provenance.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2026-04-20 |
| First published | 2019-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 32 |
| Author | draperunner |
| Maintainers | matsbyr |

## Links

- npm: https://www.npmjs.com/package/git-pretty
- Repository: https://github.com/draperunner/git-pretty
- Homepage: https://github.com/draperunner/git-pretty#readme
- Issues: https://github.com/draperunner/git-pretty/issues
- npm.io page: https://npm.io/package/git-pretty

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^5.6.2
- [@inquirer/prompts](https://npm.io/package/@inquirer/prompts.md) ^8.4.2

## Recent versions

- 5.0.1 (latest) — 2026-04-20
- 5.0.0 — 2026-01-20
- 4.0.0 — 2025-09-06
- 3.0.3 — 2025-02-14
- 3.0.2 — 2023-08-25
- 3.0.1 — 2022-11-13
- 3.0.0 — 2021-09-28
- 2.0.1 — 2020-08-07
- 2.0.0 — 2020-04-08
- 1.0.2 — 2020-03-14
- 1.0.1 — 2020-01-30
- 1.0.0 — 2020-01-30
- 0.4.0 — 2019-08-28
- 0.3.4 — 2019-08-27
- 0.3.3 — 2019-07-14
- … 6 more at https://npm.io/package/git-pretty/versions

## README

# git-pretty

An implementation of Justin Hileman's handy chart for finding the suitable git operation.

… with some additions!

![git-pretty GIF](git-pretty.gif)

## Use

Just run

```bash
npx git-pretty
```

This opens an interactive session like this:

```bash
So you have a mess on your hands. What sort of mess?

1: An uncommitted mess
2: I accidentally committed something
3: My Git history is ugly
4: I have a bunch of old branches I want gone
5: I want to sync my fork with the original repo
>
```

## Install

If you need this kind of help often, you could install git-pretty globally:

```
npm i -g git-pretty
```

Then you can drop `npx` and run

```
git-pretty
```

Using `npx` is recommended though, because it always uses the latest version.

## Node JS?

> Wasn't this a Python package, installable through `pip`?

Yes it was! But now it's a Node package, installable through `npm`. Ah, how things change through life.

---
_Source: https://npm.io/package/git-pretty · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
