Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026
The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.
A Git workflow is a strategy for how you and your team use branches, commits, and merges. Having a clear workflow prevents confusion and keeps your repository organized.
The Two-Branch Workflow
A popular workflow inspired by A successful Git branching model uses two permanent branches: master (or main) and develop.
Daily Rules
Quick features or non-breaking changes:
- Commit directly on develop, or
- Create a quick feature branch and merge it to develop
Multi-commit features that might break things:
- Create a feature branch
- Work on it until stable
- Merge to develop when ready
Hotfixes for Production
When something on production needs immediate attention:
- Create a short hotfix branch from master
- Fix the issue
- Test locally and on a test machine
- Merge to both master and develop
Quick Features Needed in Production
If develop is unstable but you need a quick feature in production:
- Create a feature branch from master (skipping develop)
- Implement the feature (keep it fast and trivial)
- Merge to both master and develop
Only do this for simple changes. If it gets complicated, wait for develop to stabilize.
Preparing Releases
When ready to release:
- Put develop on a “freeze”—no new features
- Test all workflows and verify code quality
- Merge develop into master
- Tag with a version number
Tagging
Every time you merge to master, tag it:
git tag v1.2.3
git push origin v1.2.3
Tags make it easy to roll back if something goes wrong.
Benefits for Solo Developers
Even if you work alone, Git provides:
Backup
Your code is on GitHub. If your laptop is stolen or backups fail, your code is safe.
Version Control
Go into rabbit holes and easily get back to a working state.
Historical Log
Your commit messages explain what you did and why, even years later.
Bug Investigation
Use git bisect to find when a bug was introduced.
Easy Reverts
Need to undo a change from a year ago (like removing a Black Friday promotion)? Git makes it easy.
Deployment Integration
Platforms like Netlify, Vercel, and Railway deploy automatically when you push to GitHub.
Automation
Set up Git Hooks and GitHub Actions to run tests, linting, or any custom workflow.
Open Source Participation
Git skills let you contribute to open source projects and potentially release your own work.
Learning Resources
Introductory
- The GitHub guide
- GitHub’s interactive tutorial
- GitHub Git Cheat Sheet
- Git Visual Guide
- Think Like (a) Git
In-Depth
Videos
Summary
- Choose a workflow that fits your team size and project
- Use branches to isolate work
- Tag releases for easy rollbacks
- Commit often with meaningful messages
- Even solo developers benefit enormously from Git