Skip to contentSkip to conversation

puzzling instructions in kernel dev manual, section 2.3.1

DISCUSSION Robert P. J. Day 1 participant 1 message Feb 25, 2017

lore
Share & tools
lore
#0 lore raw

just noticed this in kernel dev manual, section 2.3.1:

"To force a pickup and commit of all such pending changes, enter
the following:

     $ git add .
     $ git commit -s -a -m "getting rid of -dirty"

the "-a" option with "commit" means, "Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected."

but the previous command, "git add .", by using an argument of ".",
has already staged any new files, has it not? perhaps the preceding command should have been "git add -u" for update mode?

or am i just confused?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================