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
tags
gitdebug

More git commands

  • git worktree add ../feature-branch feature/my-feature

    Check out a branch in a parallel directory without stashing

  • git submodule update --init --recursive

    Initialize and update all submodules recursively

  • git show <sha>:path/to/file

    Print the content of a file at a historical commit

  • git log --oneline --graph --decorate --all | head -40

    Compact visual branch graph of the entire repo

  • git log -S 'password' --oneline --all

    Find all commits that added or removed the string 'password'

all 45 git commands