Information Technology Reference
In-Depth Information
one
two
three
foo
bar
eight
nine
ten
The command $ git status -sb now prints the file as:
_M numbers.txt
The file was modified but not yet staged.
The command $ git diff will now produce the output shown in Listing 13-3 .
When executed without any parameters, the command $ git diff compares the
working directory and the staging area.
Listing 13-3. The output of the $ git diff command
index f5ef170..a769e64 100644
--- a/numbers.txt
+++ b/numbers.txt
@@ -1,10 +1,8 @@
one
two
three
-four
-five
-six
-seven
+foo
+bar
eight
nine
ten
Stage the file numbers.txt with:
 
 
Search WWH ::




Custom Search