# A Successful Git branching model with git-flow

- Speaker: [Igal Tabachnik](/wiki/speakers/igal-tabachnik.md)
- Event: [Reversim Summit 2013](/wiki/years/2013.md)
- Video: https://www.youtube.com/watch?v=qKLz4CNRBb0
- Transcript: [/transcripts/2013/11-qKLz4CNRBb0.md](/transcripts/2013/11-qKLz4CNRBb0.md)
- Language: Hebrew and English · Type: talk · Level: intermediate
- Topics: [DevOps](/wiki/topics/devops.md), [Developer Experience](/wiki/topics/developer-experience.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker presents a branching model called git-flow, which provides a structured approach to managing Git repositories using specific conventions for features, releases, and hotfixes. The talk explains how Git makes branching lightweight compared to older source control systems and demonstrates how git-flow extensions simplify common workflows. Attendees learn how to isolate development from production code, manage feature branches, and handle releases efficiently.

## Key points

- [1:08](https://www.youtube.com/watch?v=qKLz4CNRBb0&t=68s) Git was originally created by Linus Torvalds to handle massive projects like the Linux kernel with distributed source control.
- [4:17](https://www.youtube.com/watch?v=qKLz4CNRBb0&t=257s) Unlike older version control systems where branching is expensive, Git branches are extremely lightweight and encourage frequent branching.
- [5:22](https://www.youtube.com/watch?v=qKLz4CNRBb0&t=322s) The git-flow model defines a structured branching strategy with separate branches for development, features, releases, and production.
- [10:58](https://www.youtube.com/watch?v=qKLz4CNRBb0&t=658s) Initializing git-flow sets up the repository with a master branch for production and a develop branch for ongoing work.
- [13:10](https://www.youtube.com/watch?v=qKLz4CNRBb0&t=790s) Developers use git-flow feature commands to start, publish, and finish individual feature branches consistently.
- [29:22](https://www.youtube.com/watch?v=qKLz4CNRBb0&t=1762s) Release branches allow teams to prepare for production by bumping version numbers and performing final fixes without disrupting development.
- [47:38](https://www.youtube.com/watch?v=qKLz4CNRBb0&t=2858s) Hotfix branches let developers patch production bugs directly from the master branch and automatically merge fixes back to development.

## Takeaways

- Use lightweight Git branches freely to isolate new features from stable code.
- Adopt a clear branching convention like git-flow to manage releases and hotfixes in a team.
- Keep the master branch strictly reserved for production-ready code while doing active development on a separate develop branch.

## Questions this talk answers

- How does git-flow improve upon standard Git branching?
- How do you handle urgent production bugs using the git-flow model?
- What is the difference between merging with and without fast-forward in Git?

## Technologies

Git, GitHub, PowerShell, Visual Studio, Windows

## Tags

branching strategy, ci cd, git, git-flow, version control
