-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathgit-grab.1
More file actions
62 lines (61 loc) · 1.42 KB
/
git-grab.1
File metadata and controls
62 lines (61 loc) · 1.42 KB
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
.Dd Jan 5, 2026
.Dt GIT-GRAB 1
.Os
.Sh NAME
.Nm git-grab
.Nd clone git repositories to a standard location
.Sh SYNOPSIS
.Nm
.Op Fl chnpV
.Ar URL No ...
.Op Ar -- git arguments No ...
.Sh DESCRIPTION
The
.Nm
utility clones git repositories to a standard location, organised by domain name and path.
Pass one or more
.Ar URL
to clone. Arguments for git may be supplied after
.Ar -- .
.Pp
The following options are available:
.Bl -tag -width indent
.It Fl c, -clipboard
Paste a URL to clone from the clipboard.
.It Fl -home
The directory to use as "grab home", where the URLs will be cloned into.
Overrides the GRAB_HOME environment variable if set.
.It Fl p, -copy-path
Copy the local destination path to clipboard after cloning.
If more than one URL is supplied the path of the last one is copied.
.It Fl n, -dry-run
Don't clone repositories, but print what would be done.
.It Fl h, -help
Display a help message and exit.
.It Fl V, -version
Display version information and exit.
.El
.Sh ENVIRONMENT
.Bl -tag -width indent
.It Ev GRAB_HOME
The base directory to clone into.
If the variable
.Ev GRAB_HOME
is not set,
.Pa ~/src
is used.
.It Ev GRAB_COPY_PATH
If set, copy the local destination path to the clipboard after cloning.
(equivalent to
.Op Ar --copy-path )
.El
.Sh EXIT STATUS
.Ex -std
.El
.Sh SEE ALSO
.Xr git-clone 1
.Sh HISTORY
The
.Nm
utility is inspired by grab by Jeff Hodges.
This implementation was written from scratch by Wesley Moore.