git_refresh is agent-read markdown (skill) from theafh/ai-modules: Refresh a local git repo back to a clean current default branch: fetch/prune, detect the remote HEAD, fast-forward main/master by --ff-only, delete merged local branches, and offer gated cleanup for upstream-gone, squash-merged, stale, or force-delete branch pruning. Use when the user asks to clean up branches, refresh main, refresh master, delete merged branches, get back to a clean main, prune stale local branches, or tidy local branches after merged PRs. Invoke only on that explicit request i.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
mdr add theafh/ai-modules/git_refresh@v1.0.1mdr add theafh/ai-modules/git_refresh@sha256:0e6eeb951af75ad8Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_qxwbcjafahv4xi26)
0 badge views in 30 days
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.0.1 latest | 2026-07-12 | 8b43c42 | 6,027 B | A | view · diff |
| v1.0.0 | 2026-07-02 | e145122 | 5,916 B | A | view |
theafh/ai-modules · 38 stars · license MIT · pushed 2026-09-05 · branch main
GET https://markdownregistry.com/api/v1/artifacts/art_qxwbcjafahv4xi26 GET https://markdownregistry.com/api/v1/resolve?ref=theafh/ai-modules/git_refresh GET https://markdownregistry.com/api/v1/blob/0e6eeb951af75ad8d90bf0a0044fdba2c50392fc7b417c2a30635f3e0bf8f3c9