From: Karl Williamson Date: Sun, 1 Aug 2010 18:50:38 +0000 (-0600) Subject: perlrepository.pod: Elaborate -a, -m X-Git-Tag: v5.13.4~117 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/2be70973e973445babb19dda3b444b93bdb23b20 perlrepository.pod: Elaborate -a, -m --- diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod index bf7e511..bc0c192 100644 --- a/pod/perlrepository.pod +++ b/pod/perlrepository.pod @@ -342,6 +342,18 @@ Now commit your change locally: Created commit 6196c1d: Rename Leon Brocard to Orange Brocard 1 files changed, 1 insertions(+), 1 deletions(-) +The C<-a> option is used to include all files that git tracks that you have +changed. If at this time, you only want to commit some of the files you have +worked on, you can omit the C<-a> and use the command C>> +before doing the commit. C> allows you to even just +commit portions of files instead of all the changes in them. + +The C<-m> option is used to specify the commit message. If you omit it, git +will open a text editor for you to compose the message interactively. This +is useful when the changes are more complex than the sample given here, and, +depending on the editor, to know that the first line of the commit message +doesn't exceed the 50 character legal maximum. + You can examine your last commit with: % git show HEAD