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 Sep 23, 2018

#91 in Development tools

Download history 301/week @ 2025-01-27 112/week @ 2025-02-03 7/week @ 2025-02-10 110/week @ 2025-02-17 38/week @ 2025-02-24 13/week @ 2025-03-03 2/week @ 2025-03-10 6/week @ 2025-03-17 214/week @ 2025-04-28

214 downloads per month

Apache-2.0

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:

  1. You create a local branch, push it and create a pull request.
  2. A reviewer merges the pull request and deletes the branch on the server.
  3. 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

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