6.3 Looking at Differences Between Versions
In Section 4.3, Seeing What Has Changed, you learned how to use
git diff
to look at the differences between
your working copy and the repository. You can also use it to view the
history within the repository:
prompt> git diff 18f822e |
|
diff --git a/contact.html b/contact.html |
|
index 64135cb..63617c2 100644 |
|
--- a/contact.html |
|
+++ b/contact.html |
|
@@ -13,6 +13,10 @@ |
|
<p> |
|
<a href="mailto:tswicegood@gmail.com">Gmail</a> |
|
</p> |
|
+ |
|
+ <p> |
|
+ <a href="http://twitter.com/tswicegood">Twitter</a> |
|
+ </p> |
|
</body> |
|
</html> |
Get Pragmatic Version Control Using Git now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.