[FE training-materials-updates] kernel labs: mention "git status"

Michael Opdenacker michael.opdenacker at free-electrons.com
Thu Oct 3 10:18:34 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=86728ff270ca1fbe51fc227d374372119d0898dd

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

commit 86728ff270ca1fbe51fc227d374372119d0898dd
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Thu Oct 3 10:17:57 2013 +0200

    kernel labs: mention "git status"
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


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

86728ff270ca1fbe51fc227d374372119d0898dd
 labs/kernel-module-simple/kernel-module-simple.tex |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/labs/kernel-module-simple/kernel-module-simple.tex b/labs/kernel-module-simple/kernel-module-simple.tex
index 33b0baf..1f9e1fc 100644
--- a/labs/kernel-module-simple/kernel-module-simple.tex
+++ b/labs/kernel-module-simple/kernel-module-simple.tex
@@ -144,6 +144,10 @@ git commit -as
 \begin{itemize}
 \item \code{git add -A} adds (or removes) files to the next commit
       (except for files explicitely ignored, such as generated ones).
+      Another, perhaps safer way to do this without taking the risk
+      to add unwanted files, is to run \code{git status} and explicitely
+      run \code{git add} on each of the files that you want to 
+      add to the next commit.
 \item \code{git commit -a} creates a commit with all modified files
       (at least the ones tracked by the repository) since the previous
       commit.



More information about the training-materials-updates mailing list