Share a tool for migrating Git repositories to SHA256

2 fcharlie 1 9/8/2025, 2:06:43 AM github.com ↗

Comments (1)

fcharlie · 5h ago
hot command is a Git repository governance tool that we integrated into HugeSCM, supporting many scenarios:

Find large files with hot size (raw size) / hot az (compressed size).

Use hot remove to quickly delete committed secrets and rewrite history.

Interactively remove large files with hot smart, which combines the size and remove commands (e.g., hot smart -L20m).

Migrate the repository's object format between SHA1 and SHA256 with hot mc.

Clean up stale refs with hot prune-refs (by prefix) or hot expire-refs (by age & merged status). Use hot scan-refs to review their status.

Linearize repository history (i.e., remove all merge commits) with hot unbranch.

Create an orphan branch from a specific commit using hot unbranch -K1 master -Tnew-branch. It keeps recent history, ideal for open-sourcing or history resets.

Use hot cat to inspect Git objects (commit/tree/tag/blob). It outputs commit/tree/tag as JSON (--json) and intelligently hexdumps binary blobs.