TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I Wrote a Book on Git

2 pointsby rajuover 3 years ago
Hello everyone!<p>In 2020 I was approached by O&#x27;Reilly (I am one of the instructors on their online platform) to see if I wanted to work on a book on Git. And not just any book, a Head First book.<p>I have always been a huge fan of Git, and have been using it since 2009. I regularly teach Git at conferences, online platforms like O&#x27;Reilly&#x27;s, and the occasional corporate training gig. So I figured, why not?<p>For those who are familiar with the Head First series, Head First Git is one of the first with a newer and more contemporary L&amp;F. Gone are the stock photos—rather almost all images in the book are illustrations (done by someone at O&#x27;Reilly). Also, my book uses a very diverse set of characters in every chapter—we have Sangita, Brigitte, Trinity, Armstrong, Gitanjali and Aref and a few others who&#x27;ll join you on your trip as you learn Git.<p>For those NOT familiar with the Head First series, IMO it is a truly unique approach to teaching ideas. It uses a very conversational style, with light-hearted narratives woven through every chapter to teach ideas concretely. The books use a variety of techniques to help truly cement ideas—there is a lot of repetition, dozens of hands-on exercises, and lot of quizzes—even crossword puzzles. AFAIK Head First is truly a class of books on its own, though Manning&#x27;s &quot;grokking&quot; series is one that comes to mind that is attempting to do something similar (and doing so very well).<p>As for the intended audience, I am thinking most HN&#x27;ers are NOT the target audience. This book is directed towards folks very new to Git, and the hope is get them to 80% of what they need to know to use Git effectively.<p>My approach in writing this book (despite it targeting beginners) was not only to teach _how_ to use Git, but also _what_ happens when you do things to Git&#x27;s DAG and the working directory&#x2F;index&#x2F;object datastore. The book uses a LOT of visualizations to explain what happens when you add and commit your work, and how operations like merging, reverting&#x2F;reseting affect the DAG.<p>The book is done, available on O&#x27;Reilly&#x27;s platform if you have an account and now on Amazon. I&#x27;d love to hear your feedback if you decide to take a look at it. My email is raju.gandhi @ the biggest search engine company in the word and my twitter is <a href="https:&#x2F;&#x2F;twitter.com&#x2F;looselytyped" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;looselytyped</a> (DM&#x27;s are open), LinkedIn is <a href="https:&#x2F;&#x2F;www.linkedin.com&#x2F;in&#x2F;rajugandhi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.linkedin.com&#x2F;in&#x2F;rajugandhi&#x2F;</a><p>This is my second book (first one is from Apress) so if anyone here is interested in knowing what it takes to write a book, or in particular a Head First book, I&#x27;d happy to share everything I&#x27;ve learned. Feel free to post a comment here, or email&#x2F;@ me on Twitter or LinkedIn.<p>Finally, a shout out to the awesome community that is Hacker News. I saved dozens of insightful comments, tips&#x2F;tricks, articles about Git that showed up here and while many of the advanced tricks did not make it into the book, they certainly made me better at Git. Thanks everyone!<p>In case my site gets hugged to death:<p><a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Head-First-Git-Learners-Understanding&#x2F;dp&#x2F;1492092517" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Head-First-Git-Learners-Understanding...</a><p><a href="https:&#x2F;&#x2F;learning.oreilly.com&#x2F;library&#x2F;view&#x2F;head-first-git&#x2F;9781492092506&#x2F;" rel="nofollow">https:&#x2F;&#x2F;learning.oreilly.com&#x2F;library&#x2F;view&#x2F;head-first-git&#x2F;978...</a>

no comments

no comments