100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Bash

Git Flow and Trunk-Based Development

Two contrasting branching strategies for organizing a team's work — Git Flow's structured long-lived branches versus trunk-based development's short-lived branches off a single trunk.

Collaboration WorkflowsIntermediate10 min readJul 9, 2026
Analogies

Git Flow and Trunk-Based Development

Beyond the basic feature branch workflow, teams often adopt a named branching strategy to standardize how releases, hotfixes, and ongoing development interact. Git Flow, popularized by Vincent Driessen in 2010, prescribes a rich set of long-lived and short-lived branch types with specific rules for how they connect. Trunk-based development takes the opposite philosophy: minimize branching altogether, keep everyone integrating into a single shared trunk as frequently as possible, and lean on feature flags and strong automated testing instead of branch structure to manage risk. Neither is universally 'correct' — they solve different problems and fit different release cadences and team sizes.

🏏

Cricket analogy: Like a team choosing between a rigid, multi-stage domestic-to-international selection pipeline (Git Flow) versus fast-tracking promising players straight into the senior squad with strong fitness testing as the safety net (trunk-based) — both approaches work, suited to different team structures.

Git Flow's branch model

Git Flow defines two permanent branches: main, which always reflects production-released code, and develop, which integrates completed features ahead of the next release. Feature branches (feature/*) branch from and merge back into develop. When it's time to prepare a release, a release/* branch is cut from develop for final stabilization and version bumping, then merged into both main and develop. Urgent production fixes get their own hotfix/* branches cut directly from main, merged back into both main and develop once resolved. This gives strong isolation between in-progress work and what's actually shipped, at the cost of considerable branch-management overhead.

🏏

Cricket analogy: Like a board keeping the official Test squad (main) separate from a developmental squad where new techniques are tried (develop), individual net sessions (feature branches) feed into develop, a warm-up tour (release) stabilizes the squad before both squads absorb it, and an injury replacement (hotfix) is called up straight into the Test squad and later folded back into the development squad too.

bash
# Git Flow style release process (illustrative, using plain git — the git-flow
# extension automates these same steps)
git checkout develop
git checkout -b release/2.4.0
# bump version files, final QA fixes
git checkout main
git merge --no-ff release/2.4.0
git tag -a v2.4.0 -m "Release 2.4.0"
git checkout develop
git merge --no-ff release/2.4.0
git branch -d release/2.4.0

# A hotfix branched directly from main
git checkout main
git checkout -b hotfix/2.4.1-auth-crash
# fix, commit
git checkout main && git merge --no-ff hotfix/2.4.1-auth-crash
git checkout develop && git merge --no-ff hotfix/2.4.1-auth-crash

Trunk-based development

Trunk-based development asks engineers to merge small changes into a single trunk (usually main) at least daily, sometimes multiple times a day, using very short-lived branches (hours, not weeks) or even committing straight to trunk with pair review. Instead of a long-lived develop branch holding unreleased work, incomplete features are hidden behind feature flags so trunk can be deployed at any time regardless of what's still in progress. This model depends heavily on a fast, reliable CI pipeline and a culture of small, safe, frequently-integrated changes — the tighter the feedback loop, the less risky each individual integration is.

🏏

Cricket analogy: Like a domestic team integrating small technique tweaks into match-day form almost daily rather than saving them for a big overhaul, hiding an unproven scoop shot from match situations behind a "not yet match-ready" tag until the coach clears it, relying on constant net-session feedback to catch flaws early.

Choosing between them

Git Flow tends to suit projects with scheduled, versioned releases — desktop software, libraries with semantic versioning, or products supporting multiple release lines in parallel (e.g. maintaining 2.x while developing 3.x). Trunk-based development tends to suit products deployed continuously, such as most SaaS web applications, where 'release' is a fuzzy, constant process rather than a discrete event. Many teams today land somewhere between the two: a simplified 'GitHub Flow' with just main plus short feature branches and PRs, without Git Flow's develop/release/hotfix ceremony.

🏏

Cricket analogy: Like a scheduled bilateral Test series with fixed squad announcements suiting the formal Git Flow approach, versus a T20 league where the XI can change every single match suiting trunk-based, with many franchises landing on a simplified middle ground of just naming the playing XI and reviewing it before each game.

GitHub Flow — main plus short-lived feature branches merged via pull request, deployed straight from main — is essentially trunk-based development wearing Git Flow's vocabulary; it's the de facto default for most modern web teams.

Adopting full Git Flow for a continuously deployed SaaS product often backfires: the develop/release branch ceremony adds process overhead without matching a real discrete release cadence, and features can sit unreleased in develop far longer than intended.

  • Git Flow defines main, develop, feature/*, release/*, and hotfix/* branches with strict merge rules between them.
  • Trunk-based development minimizes branching, favoring frequent small integrations into a single trunk.
  • Trunk-based development relies on feature flags to hide incomplete work rather than isolating it on long-lived branches.
  • Git Flow suits versioned, scheduled releases; trunk-based development suits continuous deployment.
  • GitHub Flow is a lightweight middle ground: main plus short feature branches merged via pull request.
  • The right strategy depends on release cadence, team size, and CI maturity, not on which is 'more advanced'.

Practice what you learned

Was this page helpful?

Topics covered

#Bash#GitVersionControlStudyNotes#SoftwareEngineering#GitFlowAndTrunkBasedDevelopment#Git#Flow#Trunk#Based#StudyNotes#SkillVeris

Frequently Asked Questions

21 categories · pick one to explore

Where can I get free study notes for programming and tech subjects?
SkillVeris offers completely free study notes covering programming and tech subjects, with no signup fees or paywalls. The notes are structured by course and topic, written for quick understanding, and enriched with the Learn Through Hobbies analogy method, so you can revise concepts through cricket, music, gaming, cooking and more.
Are SkillVeris study notes good for exam revision?
Yes, the study notes are designed for efficient revision: each topic answers its heading immediately, keeps explanations concise, and links to related glossary terms and cheat sheets. Students preparing for university exams or certification tests use them as quick revision notes because they distil concepts without the padding of full textbooks.
What subjects do the free study notes cover?
The study notes span the platform's main domains, including AI and machine learning, Python and programming, web development, DevOps, cloud, security and databases. Coverage mirrors the 37 live courses, so notes exist for the topics you are actually studying, and new note sets are added as courses launch.
How are SkillVeris study notes different from regular textbooks?
The notes are answer-first, concise and free, whereas textbooks are long and often expensive. Each section explains one concept directly, then reinforces it through selectable hobby analogies like cricket or cooking. Notes also cross-link to the glossary, blog and cheat sheets, letting you jump to related material instantly instead of flipping pages.
Can I use the developer study material without creating an account?
The study notes are free to access, and SkillVeris does not charge anything for its developer study material at any point. Browsing notes is straightforward from the Study Notes section, and if you want progress tracking, certificates and AI Mentor conversations tied to your learning, a free account unlocks those extras.
Do the study notes explain concepts with analogies?
Yes, this is a signature SkillVeris feature. Study notes use the Learn Through Hobbies method, explaining technical concepts through analogies from twelve domains including cricket, music, gaming, photography, travel, movies, fitness, chess, cooking, finance, business and sports. You can switch the analogy domain instantly to whichever hobby makes the concept click.
Are the revision notes suitable for last-minute exam preparation?
Yes, revision notes on SkillVeris work well for last-minute preparation because every section states the answer in its first sentences, so skimming is genuinely effective. Pair them with the relevant cheat sheet for formulas and syntax, and use the glossary for any unfamiliar term you meet while cramming.
Is there free study material for AI and machine learning?
Yes, SkillVeris provides free study notes across its AI and ML catalogue, covering Python for AI, deep learning frameworks like PyTorch and TensorFlow, Hugging Face Transformers, Large Language Models, RAG, AI agents and MLOps. All of it is free, making it a strong resource for Indian students and global learners alike.
Can beginners understand the study notes, or are they for experts?
Beginners can absolutely use them. The notes are written in plain language, define terms as they appear, and lean on hobby analogies to make abstract ideas concrete. Difficulty scales with the underlying course level, so beginner-course notes stay gentle while advanced-course notes go deeper, and the glossary supports you throughout.
How do study notes connect with SkillVeris courses?
Study notes are organised by course and topic, so they map directly to the structured courses and their 24–40-lesson curriculum. Many learners study a lesson first, then use the matching notes for revision before module assessments and the final exam, where 80 percent is required to pass and earn the certificate.
Are there study notes for Python specifically?
Yes, Python is well covered through notes tied to the Python-focused courses, including Python for AI and ML. Topics span fundamentals through applied machine learning usage. You can reinforce the notes with Python practice in Code Lab, which runs code in your browser with no installation required.
Do the study notes include code examples?
Yes, study notes include code examples wherever a concept is best shown in code, alongside explanations, key points and analogies. Reading a snippet in the notes and then reproducing it yourself in Code Lab is an effective loop, since Code Lab lets you run code in the browser across six languages.
How often is new study material added to SkillVeris?
Study material grows alongside the course catalogue. Whenever new courses join the platform's 37 live courses, matching study notes, glossary entries and cheat sheets are added so the resources stay in sync. Existing notes are also refined over time, so it is worth revisiting topics you studied earlier.
Can I use SkillVeris notes to prepare for technical interviews?
Yes, the notes make excellent interview revision because they compress each concept into direct, answer-first explanations, which mirrors how you should answer interview questions. Combine them with the SkillVeris interview questions feature, which includes readiness scoring, to test whether your revision has actually made you interview-ready.
Are the study notes mobile-friendly for studying on the go?
Yes, the study notes are built to load fast and read comfortably on mobile devices, so you can revise during a commute or between classes. Sections are short and answer-first, which suits small screens, and analogy switching works on mobile too, letting you study anywhere without carrying books.
What is the difference between study notes and cheat sheets?
Study notes explain concepts in depth with context, examples and analogies, making them ideal for learning and revision. Cheat sheets are compact quick-reference summaries of syntax, commands and key facts, ideal once you already understand a topic. Most learners study the notes first, then keep the cheat sheet handy while coding.
Do study notes help if I am stuck on a course lesson?
Yes, reading the matching study notes often clarifies a lesson because the same concept is explained from a different angle, frequently with a different analogy. If you are still stuck, ask the AI Mentor, which answers 24/7 at Quick, Detailed or Deep-dive depth until the idea genuinely makes sense.
Is there free study material for DevOps and cloud topics?
Yes, SkillVeris carries free study notes for DevOps and cloud topics as part of its coverage across 37 live courses. The material suits learners following the DevOps Engineer or Cloud Engineer paths, and it links to related glossary terms and cheat sheets so you can revise the whole toolchain in one place.
Can school or college students in India use these notes for projects?
Yes, students across India and worldwide use SkillVeris notes for coursework, projects and exam preparation, and everything is free, which matters for student budgets. The notes explain concepts clearly enough to cite in project reports, and Code Lab lets you prototype the project code directly in your browser.
How should I combine study notes with other SkillVeris resources?
A proven loop: learn from a course lesson, revise with the matching study notes, look up unfamiliar terms in the glossary, keep the cheat sheet open while practising in Code Lab, and quiz yourself with interview questions. The AI Mentor fills any remaining gaps 24/7, at whatever depth you need.

What Learners Say

Real journeys from the SkillVeris community — swipe for more.

SkillVeris taught me Python through Cricket. Now I’m building real projects and feeling confident!
Arjun S. · B.Tech Student
The best platform for hobby-based learning. Concepts finally stick.
Priya R. · Data Analyst
I went from zero coding to a portfolio of projects — all by learning through my love for gaming. Landed my first internship!
Kabir M. · CS Undergraduate
Trending Topics50 popular tags — tap to explore
Trending CoursesAll 37 free courses — tap to browse