

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
Not enough gems
Cost: 6 gems
1: Different Hashes
incomplete
2: The Plumbing
incomplete
3: The Object File
incomplete
4: Cat File
incomplete
5: Trees and Blobs
incomplete
6: Second Commit
incomplete
7: Storing Data
incomplete
This lesson's interactive features are locked, please to keep using them
Git stores an entire snapshot of files on a per-commit level. This was a surprise to me! I always assumed each commit only stored the changes made in that commit.
While it's true that Git stores entire snapshots, it does have some performance optimizations so that your .git directory doesn't get too unbearably large.
starwars.md:
- "May the Force be with you"
- "I find your lack of faith disturbing"
- "I am your father"
- "Do or do not. There is no try"
- "I've got a bad feeling about this"
dune.md:
- "May thy knife chip and shatter"
- "A Great Man Doesn't Seek To Lead. He's Called To It."
- "An Animal Caught In A Trap Will Gnaw Off Its Own Leg To Escape. What Will You Do?"
- "When Is A Gift Not A Gift?"
C: add quotes.Run and submit the CLI tests from the root of your repo.
You can stage each file separately:
git add quotes/starwars.md
git add quotes/dune.md
Or you can stage all the changes in your repo at once:
git add .