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

Ben Lovy - Feb 6 '20 - - Dev Community

I'm not sure if this is #help. Is there a correct, universally accepted better practice? In that case, yes, help me by telling me what I should be doing.

I kind of do both. If it's a relatively small change, I'll just (squash and) merge my local work branch into my local master branch and then push to origin/master, cleaning up my local branch locally. Nice and clean.

For larger changes, or changes that take me more than a session to implement, I push to origin/<branch-name> and then open a pull request. I then use GitHub to squash, merge, and delete the work branch.

This feels a little cleaner and more organized, but it also feels a little silly to "review" and "accept" changes where I was the only person involved.

obama meme

Ben accepting his own PR, 2020

If there isn't a "one true way", please #discuss your own personal preference! Mods, feel free to de-#help me.

Photo by pine watt on Unsplash

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player