Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swsnr/git-gone
Cleanup stale Git branches of pull requests
https://github.com/swsnr/git-gone
cleanup git pull-requests
Last synced: 3 months ago
JSON representation
Cleanup stale Git branches of pull requests
- Host: GitHub
- URL: https://github.com/swsnr/git-gone
- Owner: swsnr
- License: apache-2.0
- Archived: true
- Created: 2018-09-22T17:37:42.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T07:34:05.000Z (7 months ago)
- Last Synced: 2024-07-02T07:21:08.912Z (4 months ago)
- Topics: cleanup, git, pull-requests
- Language: Rust
- Homepage: https://crates.io/crates/git-gone
- Size: 195 KB
- Stars: 56
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
= git-gone(1)
Sebastian Wiesner
:doctype: manpage
:revnumber: 1.1.0
:revdate: 2024-02-28
:mansource: git-gone {revnumber}
:manmanual: git-gone== 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.prune::
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
-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 http://eed3si9n.com/):
- git gone: cleaning stale local branches at http://eed3si9n.com/git-gone-cleaning-stale-local-branches
- git-gone in Bash at https://github.com/eed3si9n/git-gone== Copyright
Copyright 2018-2020 Sebastian Wiesner
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 .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.