Information Technology Reference
In-Depth Information
• The
git add --update
command will stage all modified files (it in-
cludes modified and deleted files but excludes new ones).
• The
git add --all
stages all files (includes new, modified, and de-
leted files).
Depending on your needs you can stage all files with
$ git add -A
or tailor re-
visions as you wish.
Finally you can create the revision using the
$ git commit
command. If you use
the
$ git commit
command without
-a
flag only the files manually added to the
staging area will be affected. The operations performed by the
$ git add
,
$ git
Figure 4-11
.
The operation realized by the $ git add, $ git rm, and $ git mv commands