Find commit that introduced a bug
Binary search through history to find the breaking commit
git bisect start && git bisect bad HEAD && git bisect good v1.0
- tool
- git45 commands
More git commands
-
git diff --name-status main..feature/xList files added, modified, deleted between two branches
-
git log --oneline --graph --decorate --allASCII branch graph of the full commit history
-
git reset HEAD~1Move HEAD back one commit; staged changes return to working tree
-
git restore . && git clean -fdReset tracked files and remove untracked files/directories
-
git tag -l -n1List all tags with their first annotation line