<p>A few days ago, I asked <a href="/daily/2024/02/25/why-do-people-still-use-git-flow">why people are still using Git Flow in 2024</a>.</p>
<p>I moved to trunk-based development two years ago and haven't looked back.</p>
<h2 id="why-did-i-do-that%3F">Why did I do that?</h2>
<p>Only having a single branch instead of separate <code>main</code> and <code>develop</code> branches and branches for each feature and fix is much simpler.</p>
<p>I don't get merge conflicts when trying to merge branches together, as everything is on a single branch.</p>
<p>A couple of years ago, I was working on two features for a project. I was demoing them to a client and broke my local environment when switching branches from feature A to feature B.</p>
<p>It was embarrassing, and it took me time to resolve the issues before I could continue working.</p>
<h2 id="here%27s-the-thing">Here's the thing</h2>
<p>Working mostly on a single branch avoids merge conflicts, saves time, and simplifies my workflow.</p>
<p>No more confusion, merge conflicts or broken demos.</p>
<p>I moved to trunk-based development two years ago and haven't looked back.</p>
<h2 id="why-did-i-do-that%3F">Why did I do that?</h2>
<p>Only having a single branch instead of separate <code>main</code> and <code>develop</code> branches and branches for each feature and fix is much simpler.</p>
<p>I don't get merge conflicts when trying to merge branches together, as everything is on a single branch.</p>
<p>A couple of years ago, I was working on two features for a project. I was demoing them to a client and broke my local environment when switching branches from feature A to feature B.</p>
<p>It was embarrassing, and it took me time to resolve the issues before I could continue working.</p>
<h2 id="here%27s-the-thing">Here's the thing</h2>
<p>Working mostly on a single branch avoids merge conflicts, saves time, and simplifies my workflow.</p>
<p>No more confusion, merge conflicts or broken demos.</p>