[FE training-materials-updates] kernel labs: add git command explanations

Michael Opdenacker michael.opdenacker at free-electrons.com
Thu Oct 3 09:11:03 CEST 2013


Repository : git://git.free-electrons.com/training-materials.git

On branch  : kernel-ng
Link       : http://git.free-electrons.com/training-materials/commit/?id=a05c0f12159f3b02aba86da43cc12984929afbd4

>---------------------------------------------------------------

commit a05c0f12159f3b02aba86da43cc12984929afbd4
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Thu Oct 3 08:56:44 2013 +0200

    kernel labs: add git command explanations
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


>---------------------------------------------------------------

a05c0f12159f3b02aba86da43cc12984929afbd4
 labs/kernel-module-simple/kernel-module-simple.tex |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/labs/kernel-module-simple/kernel-module-simple.tex b/labs/kernel-module-simple/kernel-module-simple.tex
index 2ae8012..b4b44aa 100644
--- a/labs/kernel-module-simple/kernel-module-simple.tex
+++ b/labs/kernel-module-simple/kernel-module-simple.tex
@@ -141,6 +141,17 @@ git add -A
 git commit -as
 \end{verbatim}
 
+\begin{itemize}
+\item \code{git commit -A} adds (or removes) files to the next commit
+      (except for files explicitely ignored, such as generated ones).
+\item \code{git commit -a} creates a commit with all modified files
+      (at least the ones tracked by the repository) since the previous
+      commit.
+\item \code{git commit -s} adds a \code{Signed-off-by:} line to the
+      commit message. All contributions to the Linux kernel must have
+      such a line.
+\end{itemize}
+
 \section{Create a kernel patch}
 
 You can be proud of your new module! To be able to share it with



More information about the training-materials-updates mailing list