7 stable releases
Uses new Rust 2024
new 1.2.7 | May 2, 2025 |
---|---|
1.2.5 | Feb 22, 2025 |
1.2.1 | Jan 29, 2025 |
1.1.1 | Sep 19, 2024 |
0.1.1 |
|
#91 in Development tools
214 downloads per month
11KB
92 lines
git-gone
List and prune "gone" git branches.
A "gone" branch is a local Git branch whose upstream branch no longer exist. This frequently occurs in a pull request workflow:
- You create a local branch, push it and create a pull request.
- A reviewer merges the pull request and deletes the branch on the server.
- Your local branch still lingers in your clone.
Over time and after many pull request you accumulate many of these branches which reference long-merged pull requests and serve no further purpose.
git gone can list these branches and also prune them from your clone.
See https://eed3si9n.com/git-gone-cleaning-stale-local-branches/.
Usage
git gone --help
Installation
cargo install git-gone
from crates.io- Binary package for Arch
- 3rd party packages: https://repology.org/project/git-gone
License
Copyright Sebastian Wiesner sebastian@swsnr.de
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependencies
~12MB
~265K SLoC