DEV Community

Discussion on: Do you merge branches locally or create pull requests for personal projects?

Collapse
 
mjsarfatti profile image
Manuele J Sarfatti

I don't really care about how clean my own history is - all I do is trying to keep commits single-responsibility, and commit messages clear enough. I want to emphasize the "try".

I merge all the things. No rebase, no squash, and for sure no self-reviews.

The only thing I do is that when I start working on major features I'll start a new branch called feat-something, this way it's easier to eg. push a quick fix on master and then resume working on the feature...

I'm curious to know why you want to go through PRs?

Collapse
 
deciduously profile image
Ben Lovy

That makes sense. To me, the benefit of pushing work branches is 1) so that my GitHub Actions will run on the uncommitted code and 2) so that I can pick up unfinished work on a different workstation. I regularly use three different machines to work on personal code, so it's convenient to be able to pull down a branch and get going.

"Self-review" isn't really happening. I just push it through, I already know what I did in the PR.