blob: 4d7151b7700e028b13afa163c473e581b8a694a4 (
plain) (
blame)
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
|
.Dd 4/28/2025
.Dt GITHUB-MIRROR 1
.Os Darwin
.Sh NAME
.Nm github-mirror
.Nm github-mirror
.Nd Mirror GitHub repositories to a local directory
.Sh SYNOPSIS
.Nm
.Op Fl C | Fl -config Ar file
.Op Fl h | -help
.Op Fl q | -quiet
.Op Fl v | -version
.Sh DESCRIPTION
The
.Nm
utility is a tool for mirroring GitHub repositories to a local directory.
It can be used to create a local copy of a GitHub repository, which can be useful for backup purposes or for working
offline.
The following options are available:
.Bl -tag -width Ds
.It Fl C Ar file , Fl -config Ar file
Load configuration from the specified file.
By default it will search in the following locations:
.Bl -tag -width Ds
.It Pa config.ini
.It Pa github-mirror.conf
.It Pa /usr/local/github-mirror/config.ini
.It Pa /usr/local/github-mirror.conf
.It Pa /usr/local/etc/github-mirror/config.ini
.It Pa /usr/local/etc/github-mirror.conf
.It Pa /etc/github-mirror/config.ini
.It Pa /etc/github-mirror.conf
.El
See
.Xr github-mirror.conf 5
for more details on the configuration file format.
.It Fl h , Fl -help
Print help message and exit.
.It Fl q , Fl -quiet
Suppress all output except for errors.
This option is useful for running the program in the background or as a cron job.
It will not suppress error messages.
.It Fl v , Fl -version
Print version information and exit.
.El
.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
.Bl -tag -width Ds
.It 0
Success.
.It 1
An error occurred.
.El
.Sh SEE ALSO
.Xr github-mirror.conf 5 ,
.Xr git 1
.Sh AUTHORS
.An Anshul Gupta Aq Mt ansg191@anshulg.com
|