Boost Your Git DX
đ Updated January 25th 2025âsee update blog post.
This book covers the best command line Git tools, techniques, tips, tricks, and tactical tidbits Iâve encountered from over a decade of using Git. The selection reflects my preferences for well-maintained tools that provide high value with little need for customization.
Note that this book is not an introduction to Git and assumes that youâre already using Git on a daily basis. It offers ways to improve your developer experience with Git that ultimately help you code faster.
Free sample
Download the free sample to read the introduction and first three chapters.
Contents
The book contains 20 chapters. Below is a brief summary of the contents. See the latest update post for a full table of contents and links to sample content.
-
Introduction
Opening notes, a description of the included examples, acknowledgements, and changelog. -
Global configuration
Git's configuration files, basic options to configure, backing up configuration files in a repository. -
Aliases
Shorten Git commands with both shell and Git aliases. -
Shell configuration
Improve your shell experience with oh-my-zsh and Starship. -
Shell tools
Three tools that integrate with Git: Less, delta, and ripgrep. -
Repository configuration
Improvements for per-repository configuration: default branch naming and Git ignore files. -
Hooks and the pre-commit framework
Extend Git with the pre-commit framework and related hooks. -
Command commonalities
Options and data types common to all or many Git commands. -
init and clone
Tips for starting repositories, both new and cloned. -
branch and switch
Manage branches and switch around to commits. -
status and diff
Make checking status easier and improve the diffs that Git generates. -
add and restore
Learn how to add changes with precision and undo/un-add them with âgit restoreâ. -
commit and reset
Commit faster and carefully undo commits with âgit resetâ. -
stash and apply
Two commands for handling changes outside of the regular workflow. -
push and pull
Make pushing and pulling branches a little bit smoother. -
merge and rebase
Improve how merging and rebasing works. -
log and reflog
Find details from the commit log with precision and undo destructive actions with the reflog. -
blame and bisect
Track who changed what when with blame and use bisect to track down problem commits. -
worktree
Work on multiple branches at once with worktrees. -
Outroduction
Honourable mentions that didnât quite make it, and further reading.
FAQ
Who are you?
Hi, I'm Adam Johnson. I'm an author and solo consultant working with Django and Python.
Iâve used Git since 2012 and have 1.3k repositories on my GitHub profile. I even managed to become a Git contributor whilst writing this book.
What's included?
A PDF watermarked with your email address, an ePub, an AZW3 file (Kindle), and a resources zip file containing all the code examples.
Will you do a printed version?
Unfortunately, I canât afford to do print versions right now.
Do you offer any discounts?
Gumroadâs purchasing power parity feature will automatically offer you a discount based on your location.
Outside of that, I offer occasional seasonal discounts. Follow my blog, Mastodon, or Bluesky to be notified of these.
Can I get an invoice?
Gumroad will send you a receipt with a "generate" button to turn it into an invoice so you can make your employer pay!
Can I purchase with an alternative method (e.g. direct bank transfer)?
Due to accounting limitations, I can only sell my product on Gumroad. If it doesn't work for you, please try emailing Gumroad support (support@gumroad.com) and CC'ing me.
Praise
âAdam has put together such a comprehensive collection of topics, each with appropriate levels of detail (enough to make you self-sufficient, not too much to confuse you). I love that the chapters can be read in any order. It would be the perfect companion for a git Lunch & Learn series. It's perfect for a book club. I feel like it's the perfect summary for the material that is floating around in my head.â
âBlaise PabĂłn on Mastodon
âThis book transformed my day-to-day operations. As a self-taught engineer, I have found myself starved for mentorship, and Boost Your Git DX has been my most influential mentor in 2023.â
âLance Goyke on his blog
âđ€Żđ€Żđ€Ż
That's my reaction after every section in âBoost Your Git DXâ by @AdamChainz, a goldmine of excellent tips about git.â
âRodrigo on Twitter
âwhether you're new to git or an experienced veteran -- @AdamChainzâs new book "Boost Your Git DX" has something for everyone! (even I learned a cool new thing: git config --show-origin
)â
âAnthony Sottile on Twitter
âI heartily recommend #BoostYourGitDX by @adamchainz. The configuration chapter alone was worth the price. And I now finally understand git bisect!â
âDaniel Andrlik on Mastodon
âBoth [Boost Your DX books] are amazing, they remind me of my school days when you would sit in the computer lab next to the wizards, and come away with new magical skills.â
âJohn Beimler on Mastodon
âI've been using git for years and can do all the basic stuff there. But the "Boost Your Git DX" shares many useful tips, configuration settings, and options I didn't know about. It finally pushed me to revisit my git workflows and apply some improvements.â
âSebastian Witowski on LinkedIn
â@AdamChainz book is an excellent, practical complement to ProGit. It focuses on how to do the things you will need to do, and related tools for improving your git qol.â
âDan OâLeary on Twitter
â@AdamChainz book, Is a game-changer for anyone looking to level up their Git skills and streamline their development process. You're empowering me with your knowledge! đđâ
âNgazetungue Muheue on Twitter
â"Boost Your Git DX" by @adamchainz is THE comprehensive guide to Git you should be reading. Every page is imbued with useful advice and productivity tips. Personally, I understood and started using worktrees more. Check it out!â
âJulius Seporaitis on Twitter
âAdam's written two books before (Boost Your Django DX; Speed Up Your Django Tests) â both paid for themselves within the first hour of my purchase.
This one's a no-brainer, too.â
âJustin Duke on Twitter
âI picked up the early access Boost Your Git DX by @adamchainz and even within the first couple chapters Iâve found some really useful tips!â
âDaniel Andrlik on Mastodon
âDiscovered the magic of âgit stashâ, after reading about it in @adamchainz book âBoost your Git DXâ today. Tucked away my code changes safely, only to unleash them again when ready. A small yet mighty command!â
âJ-O Eriksson on Mastodon
âI'm learning a lot of neat Git tricks from Boost Your Git DX by @AdamChainz
If you use Git, check out Adam's book! đ„đ„đ„â
âMike Driscoll on Twitter
âI had the opportunity to preview a few chapters of Adam's book and was seriously impressed. I can almost guarantee you'll learn some tricks and ways to optimize your workflow. He went down the rabbit hole so you don't have to.â
âPeter Baumgartner on Twitter
âI'm really excited by @adamchainz' new book, Boost Your Git DX". I've been using git for over 14 years now and I can say that at least a third of the table of contents is new for me.â
âDaniel Roy Greenfeld on Twitter
Watermarked PDF, ePub, AZW3 & resources zip file