You are here

Find That Bug You Made Months Ago with Git Bisect

Back-end Design & Development
Front-end Design & Development
Experience Level: 
Session Length: 
45 minutes

You made a mistake months ago and a part of the site is broken. No one noticed at first, but now the client is upset. You need to fix it - and fast! But where in the code was this bug introduced?

What if I told you there’s a tool hidden within Git to quickly find when a bug was committed and then fix it? Git Bisect allows you to jump through dozens of commits at once and find the culprit within seconds - even when you don’t know exactly when it happened or even what file was edited. Once we understand the basics, we’ll take it a step further with automation.

This session is appropriate for anyone comfortable with Git and who sometimes makes mistakes.

Key takeaway: “Git Bisect is an easy to use tool that will save me hours of work tracking down hidden bugs in my code.”

Learning Objectives & Outcomes: 

By the end of the session you will know:
- more about Git's tools so that you can do more with less
- how to use Git Bisect to discover and correct bugs
- how to correctly guess any number with 7 guesses and wow your friends