Bisect — find broken commit
Binary search through history to find a regression
git bisect start && git bisect bad HEAD && git bisect good <good-sha>
- tool
- git45 commands
More git commands
-
git worktree add ../feature-branch feature/my-featureCheck out a branch in a parallel directory without stashing
-
git submodule update --init --recursiveInitialize and update all submodules recursively
-
git show <sha>:path/to/filePrint the content of a file at a historical commit
-
git log --oneline --graph --decorate --all | head -40Compact visual branch graph of the entire repo
-
git log -S 'password' --oneline --allFind all commits that added or removed the string 'password'