Find which commit introduced a bug
Start binary search for the commit that introduced a bug
git bisect start && git bisect bad && git bisect good v1.0
- tool
- git45 commands
More git commands
-
git log --follow -p -- path/to/file.pyShow full diff history of a file including renames
-
git reset --soft HEAD~1Move HEAD back one commit, keeping staged changes
-
git clean -fdRemove untracked files and directories from working tree
-
git branch --merged mainList local branches already merged into main
-
git rebase -i HEAD~5Squash, reorder, or edit the last 5 commits