-
Notifications
You must be signed in to change notification settings - Fork 8
/
git-gone.1
111 lines (111 loc) · 2.6 KB
/
git-gone.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
'\" t
.\" Title: git-gone
.\" Author: Sebastian Wiesner
.\" Generator: Asciidoctor 2.0.23
.\" Manual: git-gone
.\" Source: git-gone 1.1.1
.\" Language: English
.\"
.TH "GIT\-GONE" "1" "" "git\-gone 1.1.1" "git\-gone"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
.nh
.ad l
.de URL
\fI\\$2\fP <\\$1>\\$3
..
.als MTO URL
.if \n[.g] \{\
. mso www.tmac
. am URL
. ad l
. .
. am MTO
. ad l
. .
. LINKSTYLE blue R < >
.\}
.SH "NAME"
git-gone \- prune "gone" Git branches
.SH "SYNOPSIS"
.sp
\fBgit gone\fP [\fI\-fv\fP] list
.br
\fBgit gone\fP [\fI\-fv\fP] prune
.SH "DESCRIPTION"
.sp
Lists or removes "gone" branches, that is, local branches which used to have an upstream branch on a remote which is now removed.
.sp
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.
\fBgit gone\fP easily removes these left\-over branches.
.SH "COMMANDS"
.sp
list
.RS 4
List all gone branches.
.RE
.sp
prune
.RS 4
Delete all gone branches.
.sp
Prints a list of deleted branches including a command to restore the branch as long as the referenced commit is still in the reflog.
.RE
.SH "OPTIONS"
.sp
\-V, \-\-version
.RS 4
Print the version number and exit.
.RE
.SH "EXIT STATUS"
.sp
0 on success, non\-zero otherwise.
.SH "BUGS"
.sp
Please report bugs to \c
.URL "https://github.com/swsnr/git\-gone/issues/new" "" "."
.SH "SEE ALSO"
.sp
\fBgit(1)\fP
.sp
All credits for the idea go to Eugene Yokota (see \c
.URL "http://eed3si9n.com/" "" "):"
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
. sp -1
. IP \(bu 2.3
.\}
git gone: cleaning stale local branches at \c
.URL "http://eed3si9n.com/git\-gone\-cleaning\-stale\-local\-branches" "" ""
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
. sp -1
. IP \(bu 2.3
.\}
git\-gone in Bash at \c
.URL "https://github.com/eed3si9n/git\-gone" "" ""
.RE
.SH "COPYRIGHT"
.sp
Copyright 2018\-2020 Sebastian Wiesner \c
.MTO "sebastian\(atswsnr.de" "" ""
.sp
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 \c
.URL "http://www.apache.org/licenses/LICENSE\-2.0" "" "."
.sp
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.
.SH "AUTHOR"
.sp
Sebastian Wiesner