Topic
Git Workflow
Branches, remotes, conflicts, PR review and rulesets, learned for working alongside AI agents.
Review this Topic 33 Review cards
About
The GitHub workflow for someone who has used Git as a save-point tool on one branch: branches, remotes, pull requests, review, conflicts, checks and rulesets, with the extra twist of handing work to AI agents on their own branches. Practised in a throwaway repo with the gh CLI.
After this Topic you can:
- Take any change through the full flow: branch, commit, push, PR, review, checks, merge, sync
- Say where
main,origin/mainandHEADpoint and whatfetch,pullandpushwill do before running them - Resolve a merge conflict and keep a branch current with
mainby merging or rebasing, knowing which fits - Review a diff on GitHub as author and as reviewer: line comments, request changes, approve
- Give an AI agent its own branch or worktree, review its PR like a teammate's, and run several agents in parallel without collisions
- Set up CI checks, branch protection and rules that keep an agent off
main
Lessons
- Branches and Your First PR Lesson 1 · Git workflow in the age of agents
- Remotes: Fetch, Pull, Push Lesson 2 · Git workflow in the age of agents
- Resolving Merge Conflicts Lesson 3 · Git workflow in the age of agents
- Reviewing a Pull Request Lesson 4 · Git workflow in the age of agents
- Checks and Rulesets Lesson 5 · Git workflow in the age of agents
Reference sheets
- GitHub Flow Cheatsheet Reference · Git workflow in the age of agents
- Git Workflow Glossary Reference · Git workflow in the age of agents
Where this Topic fits
This Topic's Nodes and the Nodes one Relationship away in other Topics.
Loading the Graph…