Good Git habits
Inspect your work, make focused commits, and leave a history others can understand.
5 min · 5 decisionsSee what happens behind every command.
Type a command or choose a quick command. Your simulated history stays here when you switch tabs.
mainClick a commit to inspectGitHub hosts your online copy. Teamwork is a separate path.
You know the actions. Now practice the decisions behind them. Start with good habits, then explore how teams review and release their work.
0 / 5 modules complete · progress saved in this browserInspect your work, make focused commits, and leave a history others can understand.
5 min · 5 decisionsChoose a safe next step when work lands on the wrong branch or a push is rejected.
6 min · 5 decisionsTake one small improvement through feedback, checks, merging, and branch cleanup.
6 min · 7 decisionsPrepare a versioned release while development continues, then carry a hotfix into future work.
8 min · 11 decisionsMark an accepted version, share its tag, and distinguish a release from deployment.
4 min · 5 decisions| Workflow | Branch structure | Consider it when… |
|---|---|---|
| GitHub Flow | Main + focused feature branches | You want a simple review process and frequent delivery. |
| Gitflow | Main + develop + feature, release, and hotfix branches | You prepare planned versions while future development continues. |
These are team conventions, not extra rules built into Git. Merging into main deploys only when your project has configured that automation.
Why Gitflow’s creator recommends choosing by context ↗