-
Notifications
You must be signed in to change notification settings - Fork 22
/
git-fresh.1
73 lines (73 loc) · 1.45 KB
/
git-fresh.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
." Text automatically generated by txt2man
.TH git-fresh "January 21, 2019" "" ""
.SH NAME
\fBgit-fresh
\fB
.SH SYNOPSIS
.nf
.fam C
\fBgit-fresh\fP [\fB-fmrtRWS\fP] [\fB-sl\fP] [\fIremote\fP] [\fIroot\fP]
.fam T
.fi
.SH DESCRIPTION
\fBgit-fresh\fP helps keep your Git repo fresh.
.PP
By default, \fBgit-fresh\fP will:
.IP \(hy 3
update local \fIroot\fP (master) to match \fIremote\fP \fIroot\fP
.IP \(hy 3
stash changes
.IP \(hy 3
prune \fIremote\fP branches
.PP
\fBgit-fresh\fP will ignore any branches listed in a .freshignore file.
\ .freshignore should contain branch names you would like to ignore
on separate lines. The file can exist in the current Git repo
or in the home directory, i.e. ~/.freshignore.
.PP
\fIremote\fP is origin by default. \fIroot\fP is master by default.
.SH OPTIONS
.TP
.B
\fB-f\fP
Delete stale local and \fIremote\fP branches
.TP
.B
\fB-m\fP
Merge \fIremote\fP \fIroot\fP into current branch
.TP
.B
\fB-r\fP
Rebase current branch against \fIremote\fP \fIroot\fP
.TP
.B
\fB-t\fP
Remove local tags that do not exist on \fIremote\fP
.TP
.B
\fB-R\fP
Reset local \fIroot\fP to \fIremote\fP \fIroot\fP
.TP
.B
\fB-W\fP
Wipe workspace clean
.TP
.B
\fB-S\fP
Clear all stash entries
.TP
.B
\fB-s\fP
Apply stashed changes after run
.TP
.B
\fB-l\fP
Only delete local stale branches
.TP
.B
\fB-v\fP
Print \fBgit-fresh\fP version and exit
.SH BUGS
Issues are tracked on GitHub: https://github.com/imsky/\fBgit-fresh\fP
.SH AUTHOR
Ivan Malopinsky - http://imsky.co