r/ClaudeCode • • 25m ago

Help/Question Solo dev using Claude Code: PRs vs. pushing straight?

Hey everyone,

I’m a solo dev building web apps, mostly using Claude Code, and I’m trying to figure out the best Git workflow for this.

I used PRs for a while, but it honestly felt a bit slower than just pushing straight to main and fixing bugs quickly as they pop up. On top of that, since AI lets me change larger chunks of code fast, I’m always a bit worried about merge conflicts if I have multiple PRs or closely related issues going at once.

I’m not sure if I’m just doing PRs wrong (maybe it’s a PR size thing, or maybe stacked PRs are the answer?), or if pushing straight to main is actually totally fine when working solo with AI.

How do you all handle this? Do you have a specific workflow with Claude Code that works well for you? Sorry if this sounds like a beginner question, just curious to hear how others approach it. Thanks!

1 Upvotes

9 comments sorted by

•

u/AutoModerator 25m ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Reasonable_Jello_497 17m ago

PRs aren't what cause merge conflicts, divergent branches are. Pushing straight to main doesn't avoid them, you just hit them later with no diff to look at.

1

u/Familiar_Gas2305 0m ago

...the diff is exactly the same regardless of whether it's represented in a PR

1

u/raobjcovtn 14m ago

I prefer PRs because the PR description provides more context of the changes and why, than you get in just commit messages.

1

u/RonHarrods 13m ago

I'd recommend to take the middle ground. Push straight to dev branch first. And have that deployed the same setup as prod or whatever.

Then merge to main later

1

u/mylifeasacoder 10m ago

Are you actually going to review the code? No? Just push to main.

1

u/Glass-Amount6152 7m ago

Solo here too, on a Next.js/Supabase app, and the one rule I stick to is that I read every change before it deploys. A PR is just the easiest place to do that read. Keeping them small and merged before the next one starts means there's rarely a second branch around to conflict with, which takes care of most of the merge worry. If you're never going to read the diff, the PR is ceremony, but when Claude rewrites big chunks fast, that read is where you catch the stuff it changed that you didn't ask for.

1

u/TheKiddIncident Instructor 0m ago

I would be much more worried about your commit and branch strategy than your PRs.

The PR has two purposes: tell everyone on the team what you're doing and to get more eyes on your code.

For a solo shop, you don't need either of those things.

For those who say it gives you a record of changes, the answer is that a good commit message will do that. Hence my note about a commit and branch strategy.

Make sure that you are committing early and are making new branches for any major refactor. Those two things will save you miles of pain.

So, if skipping the PR is working for you, then no worries.

1

u/didntwantthisapp 21m ago

My advice is to adopt good standards of practice early. This is a bad habit in a context with real life circumstances. At minimum I'd suggest staying with a 'human only merge to main' and limit the models to branch development. Ofc with no users, nothing is there to stop you from building however you want. But for resilience, you want the paper trail and the separation of production and lower environments like development