summary refs log tree commit diff
path: root/bin/man1/git-import.1
blob: 31d224e1aae037e28b868da03effc1600276ce3e (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
.Dd September 11, 2023
.Dt GIT-IMPORT 1
.Os
.
.Sh NAME
.Nm git-import
.Nd import a tarball into git
.
.Sh SYNOPSIS
.Nm
.Op Fl m Ar message
.Op Fl p Ar count
.Ar branch
.Ar file
.
.Sh DESCRIPTION
.Nm
imports a tarball
as a new commit on
a git branch.
If
.Ar branch
does not exist,
it will be created.
If
.Ar file
is a URL,
it will be fetched with
.Xr curl 1 .
.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl m Ar message , Fl \-message Ar message
Set the commit message.
.It Fl p Ar count , Fl \-strip Ar count
Remove the specified number
of leading path elements.
The default is 1.
.El
.
.Sh ENVIRONMENT
.Bl -tag -width Ds
.It Ev CURL
The path to
.Xr curl 1 ,
used to fetch the tarball
from a URL.
.El