What's in that push?
From the command line, we can use the git show
command:
Figure 4.2: Examining the push
There's a lot of information here. First, we see the author and the date. Then we see the message that was attached to this commit (Add properties
). Next, Git does a diff
(difference) between Book.cs
and Book.cs
naming the first one a and the second b. The one labeled a is Book.cs
before this commit, the one labeled b is the new contents in this commit.
You may have noticed the line that says /dev/null
. This indicates that a file is being compared against nothing, and thus everything is new.
The next line shows that /dev/null
is being compared against file b (the new Book.cs
file):
Figure 4.3: Comparing against dev/null
What follows are the changes. Deletions will be marked in red, modifications in green, and new code in yellow. (This display and these colors may depend on which shell you are using.) We see here that three using
statements...