commit 74416c4791479e5fa5a13a834b228817b257fe09 from: Stefan Sperling date: Thu May 09 21:46:28 2019 UTC document 'got commit' commit - c6fc0acd8e42c67f7ea7b4b462395e1039815486 commit + 74416c4791479e5fa5a13a834b228817b257fe09 blob - e54fe672e3ab1e031fd29626789594ffbd48e473 blob + 3ac1fa9f8decfc8a41d956bcad6cbe6e8c6aeca7 --- got/got.1 +++ got/got.1 @@ -313,7 +313,28 @@ it will become an unversioned file again. If the file was deleted with .Cm got rm it will be restored. +.It Cm commit [ Fl m Ar msg ] [ file-path ] +Create a new commit in the repository from local changes in a work tree. +This command requires the +.Ev GOT_AUTHOR +environment variable to be set. +.Pp +The options for +.Cm got commit +are as follows: +.Bl -tag -width Ds +.It Fl m Ar msg +Use the specified log message when creating the new commit. .El +.El +.Sh ENVIRONMENT +.Bl -tag -width GOT_AUTHOR +.It Ev GOT_AUTHOR +The author's name and email address for +.Cm got commit , +for example: +.An Stefan Sperling Aq Mt stsp@openbsd.org +.El .Sh EXIT STATUS .Ex -std got .Sh EXAMPLES