Git is a powerful tool for describing and maintaining the history of a project, but most people never get beyond the basics. By giving you the ability to rewrite history (with the safety of never truly losing information), Git allows you to craft a history that is more true to the intent of your changes, rather than one filled with countless “oops” and “fixed typo” commits. Of course, with great power comes great responsibility, and it is important to wield your time-travelling powers with restraint. In this talk, you’ll learn how to clean up your history without confusing others, as well as how to recover if things go wrong.
You’ll also learn more about the conceptual model behind Git and how to bend it to your will. Once you understand how commits and branches really work, you can compose your Git tools to do what you want. Need to insert a commit in the middle of a branch? See who introduced the bug two weeks ago that surfaced in production today? Resolve merge conflicts cleanly? Break a large commit into several smaller ones, or squash several smaller ones together into one? With Git, you can do it.
David Baumgold is a web developer and open source advocate based in the Boston, Massachusetts area. He enjoys teaching, learning, and connecting interesting people with each other. He genuinely believes that everything will all work out in the end, somehow.
©2015, O’Reilly UK Ltd • (800) 889-8969 or (707) 827-7019 • Monday-Friday 7:30am-5pm PT • All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. • firstname.lastname@example.org