{"id":13994658,"url":"https://github.com/drewwyatt/git-tidy","last_synced_at":"2025-04-09T07:07:43.656Z","repository":{"id":37178638,"uuid":"174610188","full_name":"drewwyatt/git-tidy","owner":"drewwyatt","description":"Tidy up stale git branches.","archived":false,"fork":false,"pushed_at":"2023-04-26T20:50:12.000Z","size":66,"stargazers_count":148,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-24T16:24:40.580Z","etag":null,"topics":["cli","cli-app","command-line","command-line-tool","git","rust","terminal"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drewwyatt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-03-08T21:11:16.000Z","updated_at":"2024-03-11T05:30:04.000Z","dependencies_parsed_at":"2024-03-24T08:33:37.319Z","dependency_job_id":"1858765a-29ea-4bb0-b826-0d8d1c77ac2d","html_url":"https://github.com/drewwyatt/git-tidy","commit_stats":{"total_commits":50,"total_committers":6,"mean_commits":8.333333333333334,"dds":0.5,"last_synced_commit":"4c62ab7888756766a609567dd27e27700fc0d080"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewwyatt%2Fgit-tidy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewwyatt%2Fgit-tidy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewwyatt%2Fgit-tidy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewwyatt%2Fgit-tidy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drewwyatt","download_url":"https://codeload.github.com/drewwyatt/git-tidy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994121,"owners_count":21030050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cli-app","command-line","command-line-tool","git","rust","terminal"],"created_at":"2024-08-09T14:03:01.415Z","updated_at":"2025-04-09T07:07:43.635Z","avatar_url":"https://github.com/drewwyatt.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# 🗑 git-tidy\n\n[![crates.io](https://img.shields.io/crates/v/git-tidy?style=flat-square)](https://crates.io/crates/git-tidy)\n\nTidy up stale git branches.\n\n[![asciicast](https://asciinema.org/a/389715.svg)](https://asciinema.org/a/389715)\n\n## Installation\n\n### Homebrew\n\n```bash\n$ brew tap drewwyatt/tap\n$ brew install git-tidy\n```\n\n### Cargo\n\n```bash\n$ cargo install git-tidy\n```\n\n#### ⚠️ You may need to update `cargo` for this ⚠️\n\nIf you are seeing an error like the one in [this issue](https://github.com/drewwyatt/git-tidy/issues/45):\n\n```\n▪ cargo install git-tidy\n    Updating crates.io index\n  Installing git-tidy v2.0.1\nerror: failed to compile `git-tidy v2.0.1`, intermediate artifacts can be found at `/tmp/cargo-installgtcftB`\n\nCaused by:\n  failed to select a version for the requirement `zeroize = \"^0.9.3\"`\n  candidate versions found which didn't match: 1.3.0, 1.2.0, 1.1.1, ...\n  location searched: crates.io index\n  required by package `dialoguer v0.7.1`\n      ... which is depended on by `git-tidy v2.0.1`\n```\n\nYou can probably fix this by updating cargo with:\n\n```sh\nrustup update\n```\n\n\n### Previous versions\n\nNewer versions of `git-tidy` are (for now) only available from Homebrew and [crates.io](https://crates.io/crates/git-tidy), but you can still get `1.0.0` from the following places:\n\n#### Snapcraft\n\n```bash\n$ sudo snap install git-tidy\n```\n\n#### Go\n\n```bash\n$ go get -u github.com/drewwyatt/git-tidy\n```\n\n## Usage\n\n```bash\n$ git tidy # executes \"git branch -d\" on \": gone\" branches\n```\n\n### With force delete\n\n```bash\n$ git tidy -f # same as above, but with \"-D\" instead of \"-d\"\n# or\n$ git tidy --force\n```\n\n### Interactive\n\nPresent all stale (\": gone\") branches in a checkbox list, allowing user to opt-in to deletions.\n\n```bash\n$ git tidy -i\n# or\n$ git tidy --interactive\n# with force\n$ git tidy -if\n# or\n$ git tidy --interactive --force\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewwyatt%2Fgit-tidy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrewwyatt%2Fgit-tidy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewwyatt%2Fgit-tidy/lists"}