From 90fefcaa0b70af49061d648ae3566d65abfc2ab0 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 11 Sep 2023 17:01:58 -0400 Subject: Add git-import --- bin/man1/git-import.1 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 bin/man1/git-import.1 (limited to 'bin/man1') diff --git a/bin/man1/git-import.1 b/bin/man1/git-import.1 new file mode 100644 index 00000000..31d224e1 --- /dev/null +++ b/bin/man1/git-import.1 @@ -0,0 +1,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 -- cgit 1.4.1