Cherry-pick commit git
Apply a single commit from another branch
git cherry-pick <sha>
more git
all 45 commands →
Reflog — rescue lost commits
git reflog show --date=relative | head -20
Stash with message
git stash push -m 'WIP: feature-x' -u
Apply stash by index
git stash pop stash@{2}
Bisect — find broken commit
git bisect start && git bisect bad HEAD && git bisect good <good-sha>
Worktree — multiple branches
git worktree add ../feature-branch feature/my-feature