Free courseGit basics for vibe coders
Branching and pull requests without the drama
Create branches, open focused PRs, and merge confidently with lightweight review habits.
14 min
Branching and pull requests without the drama
Branches let you work safely without destabilizing main.
A practical branch workflow
- Start from an updated
main. - Create a focused branch.
- Commit in small chunks.
- Open a pull request (PR).
- Merge once checks pass.
git checkout main
git pull
git checkout -b feat/free-course-landing
Keep PRs easy to review
Small PRs are merged faster and introduce fewer bugs. Aim for one problem per PR, with clear context in the description:
- What changed?
- Why now?
- How to test it?
If you get conflicts
Conflicts are normal. Resolve them calmly:
git fetch origin
git rebase origin/main
Fix conflicted files, then continue:
git add .
git rebase --continue
The goal isn't to avoid conflicts forever. The goal is to keep your branch short-lived and your changes focused.