#git #branch #remote

app git-gone

Manage "gone" Git branches

11 releases

0.4.3 Dec 1, 2022
0.4.2 Oct 9, 2022
0.4.1 Sep 28, 2022
0.3.8 Jan 14, 2022
0.1.1 Sep 23, 2018

#226 in Development tools

Download history 18/week @ 2022-11-25 25/week @ 2022-12-02 4/week @ 2022-12-09 13/week @ 2022-12-16 3/week @ 2022-12-23 3/week @ 2022-12-30 5/week @ 2023-01-06 7/week @ 2023-01-13 6/week @ 2023-01-20 6/week @ 2023-01-27 13/week @ 2023-02-03 51/week @ 2023-02-10 35/week @ 2023-02-17 1/week @ 2023-02-24 3/week @ 2023-03-03 4/week @ 2023-03-10

51 downloads per month


158 lines

GIT-GONE(1) git-gone GIT-GONE(1)

NAME git-gone - prune "gone" Git branches

SYNOPSIS git gone [-fv] list git gone [-fv] prune

DESCRIPTION Lists or removes "gone" branches, that is, local branches which used to have an upstream branch on a remote which is now removed.

   This situation typically occurs in a pull request workflow where the
   upstream branch gets deleted on the server after merging a pull
   request, leaving the local branch from which the pull request
   originated in place. git gone easily removes these left-over branches.

COMMANDS list List all gone branches.

       Delete all gone branches.

       Prints a list of deleted branches including a command to restore
       the branch as long as the referenced commit is still in the reflog.

OPTIONS -f, --fetch Run git fetch --prune --all first.

   -v, --verbose
       Print detailed progress when fetching.

   -V, --version
       Print the version number and exit.

EXIT STATUS 0 on success, non-zero otherwise.

BUGS Please report bugs to https://github.com/swsnr/git-gone/issues/new.

SEE ALSO git(1)

   All credits for the idea go to Eugene Yokota (see

   •   git gone: cleaning stale local branches at

   •   git-gone in Bash at https://github.com/eed3si9n/git-gone

COPYRIGHT Copyright 2018-2020 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,
   implied. See the License for the specific language governing
   permissions and limitations under the License.

AUTHOR Sebastian Wiesner

git-gone 0.4.3 GIT-GONE(1)


~315K SLoC