From the course: Git Workflows
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Trunk-based development overview
From the course: Git Workflows
Trunk-based development overview
- [Instructor] If your team is looking for a streamlined Git workflow, you might consider trunk-based development. Trunk-based development, also known as TBD, is a workflow where developers center their collaboration around a single branch known as trunk. Now in Git, the naming for this branch is a little different. Instead of trunk, it's called main. Just know that throughout this chapter, I'll be using these names interchangeably. No matter what you call it, the main idea behind TBD is that trunk is the branch where the development team shares their code and that there are no long-lived branches off of it. Teams that practice trunk-based development have some choices to make about how to go about it. So let's talk through the workflow, and I'll discuss a few of those choices. We'll start with the basic development flow. Smaller teams with a very high release cadence may choose to push changes directly to trunk. In…