Dierent OSs store line separators dierently
CR (Carriage Return)
and LF pair
retrieving the wrong format means trouble!
CHAPTER 4 WORKING TOGETHER
PU R G I N G HIST ORY
PU RGING HISTORY
Bob has committed a le he shouldn't have
$ git log -patch
Author: Bob <[email protected]>
Tue Mar 19 00:03:32 2013 -0700
Fix security breach.
Gregg decided he didn't need that latest commit, and did a hard reset
And now he's realized
that was a mistake
$ git log -pretty=oneline
1e62107. Add third section.
43c13e7. Add second section.
2bd404a. Add first section.
BAD WAYS TO SHARE LIBRARIES
Copy the libraries into the projects
Can't share changes back
Library quickly gets outdated
Post libraries on a central server
Can't make library changes without a project to test it in
CHAPTER 5 SUBMO
Gregg is halfway done with work on the "gerbils"
branch, but an issue with "master" needs xing NOW
$ git diff
diff -git a/index.html b/index.html
index d36fac4.d2923a8 100644
@ -7,6 +7,7 @