# Bhupesh-V/ugit

🚨️ ugit helps undo git commands. Your damage control git buddy. Undo from 20+ git scenarios.

Repository: https://github.com/Bhupesh-V/ugit
Canonical: https://ross.abutalabs.com/products/ugit
Homepage: https://bhupesh.me/undo-your-last-git-mistake-with-ugit/
Language: Shell
License: MIT
License Family: permissive
Topics: git-tools, git-toolkit, fzf-scripts, bash-script, shell-scripts, undo-git-command, undo-commands, ugit, git-undo, zgenom, git-undo-tool, undo-git
Last push: 2025-04-13T09:13:59+00:00

## Health v2 (maintenance only)
Score: 30/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 16, release rhythm 8, longevity 100
- inputs: {"age_days": 1971, "days_push": 507, "days_rel": 507, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1508, forks 48 (observed 2026-08-28T04:04:55.616389+00:00)

## What it is
ugit is a shell script tool that helps you undo accidental git commands across 20+ scenarios, such as undoing commits, adds, pushes, branch deletions, merges, and stash operations. It provides guided, interactive steps powered by fzf so terminal users can recover from git mistakes without searching for solutions.

## Use cases
- undo a git commit I just made
- restore a deleted git branch
- undo git add
- undo a git merge
- recover a deleted file after a commit
- undo git stash drop or clear
- undo git reset
- undo git push

## When to choose
- you live in the terminal and want quick guided recovery from git mistakes
- you keep forgetting the exact git commands to undo operations
- you want to avoid context-switching to search 'how to undo X in git'

## When to avoid
- you need a GUI-based git recovery tool
- you are on Windows without a POSIX shell environment
- you want a full git wrapper or version-control replacement rather than an undo helper

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, developer-tools, version-control
- domain: version-control, developer-tools
- platform: cli
- tags: git, undo, fzf, shell-script, damage-control, command-line, linux, macos

## Member repositories
- Bhupesh-V/ugit (main) score 30

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:55.616389+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-30T04:32:30.879284+00:00, confidence not recorded.
  - readme: https://github.com/Bhupesh-V/ugit (fetched 2026-08-28T04:04:55.616389+00:00, sha 33520ebd3711)
  - homepage: https://bhupesh.me/undo-your-last-git-mistake-with-ugit/ (fetched 2026-08-29T11:36:39.794443+00:00, sha 322b9caaff5e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
