Information Technology Reference
In-Depth Information
#
deleted:
deleted.txt
#
modified:
modified.txt
#
renamed:
old-name.txt -> new-name.txt
#
new file:
new.txt
#
All the changes were staged.
9. Check the shortened status with the $ git status -s command.
You will get:
D_ deleted.txt
M_ modified.txt
R_ old-name.txt -> new-name.txt
A_ new.txt
10. Commit the changes with the $ git commit -m "Committing
all the changes" command.
11. Check the status with the $ git status -s command. The output is
empty, therefore the repository is clean.
How It Works
Recipe 4-9 explains the role of the command we already know quite well. It is $ git
add -A This command stages all the changes in the working directory. The conver-
sions performed by $ git add -A are summarized in Table 4-1 .
Table 4-1 . Conversions performed by git add -A
The state before $ git add -A
The state after $
git add -A
New unstaged file ??
A_
Modified unstaged file _M
M_
Deleted unstaged file _D
D_
Renamed unstaged file indicated as two changes; one of them is denoted by
??, the other is denoted by _D
R_
 
 
Search WWH ::




Custom Search