Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 610 Bytes

File metadata and controls

31 lines (22 loc) · 610 Bytes
title Debugging
description Git recipes for finding bugs with bisect, blaming lines, and searching commit messages and file contents across history.
section playbook/debugging
order 80

Debugging

Find which commit introduced a bug

Use Git Bisect for a full walkthrough of manual and automated binary search through commit history.

See who last changed each line

$ git blame <file>

Search commit messages

$ git log --grep="fix" --oneline

Search file contents across history

$ git log -S "functionName" --oneline