DEV Community

Jonathan Hall
Jonathan Hall

Posted on • Originally published at jhall.io on

Commit daily

One of the most common problems I see teams and individuals facing when trying to adopt trunk-based development, is the struggle to break the habit of long-lived feature branches.

Some things I commonly hear are:

“Yes, smaller PRs would be nice, but this feature is just too big for that.”

“I just don’t feel good about submitting an incomplete PR.”

“It’s not working yet.”

There are many strategies to make smaller PRs (or even eliminate the need for PRs entirely), but that’s not what I want to talk about right now.

Instead, I want to encourage anyone who’s struggling with this to make a personal commitment. Or if your team is struggling, form a team working agreement.

The commitment is simple:

Commit daily.

To elaborate, my suggestion is to at minimum, commit your work daily, push it to the server, and open a pull request. Keep it in WIP/Draft mode if you must.

But making your work visible is half of the reason for continuous integration (CI) and trunk-based development (TBD).

This step alone isn’t enough to give you the benefits of TBD and CI. But if you’re struggling with the idea of sharing incomplete work, I know no better way to overcome that “shyness”, than to simply force yourself to share incomplete work.

Don’t let another day go by when you don’t commit something to a PR, even when it’s incomplete.


If you enjoyed this message, subscribe to The Daily Commit to get future messages to your inbox.

Runner H image

Ask Once. Get a Day Trip, Booked & Budgeted.

Want a kid-friendly Paris itinerary with a €100 limit? Runner H books, maps, plans, and syncs it all. Works with Google Maps, Airbnb, Docs & more.

Try Runner H

Top comments (0)

Feature flag article image

Create a feature flag in your IDE in 5 minutes with LaunchDarkly’s MCP server 🏁

How to create, evaluate, and modify flags from within your IDE or AI client using natural language with LaunchDarkly's new MCP server. Follow along with this tutorial for step by step instructions.

Read full post

👋 Kindness is contagious

Dive into this insightful article, celebrated by the caring DEV Community. Programmers from all walks of life are invited to share and expand our collective wisdom.

A simple thank-you can make someone’s day—drop your kudos in the comments!

On DEV, spreading knowledge paves the way and strengthens our community ties. If this piece helped you, a brief note of appreciation to the author truly counts.

Let’s Go!