Git Commands
A curated collection of 7 git commands for building with AI coding agents.
Clean Branches
Safely prune merged and stale Git branches: drop dead remote-tracking refs, list merged candidates for review, then delete with the safe -d variant.
Create PR
Push the current branch and open a GitHub pull request with a generated title and body.
Git Bisect
Drive git bisect to find the exact commit that introduced a regression.
Git Undo
Safely reverse the last Git operation in the current repo — pick the right tool (restore, reset --soft/--mixed, revert, or reflog recovery) based on what happened and whether it was already pushed, and confirm before anything destructive.
Resolve Merge Conflicts
Walk through resolving the in-progress merge, rebase, or cherry-pick conflict in the current repo by understanding both sides, then verify before continuing.
Sync Branch
Fetch and rebase the current branch onto its base, resolving conflicts and verifying the build.