An easy way to merge long-running branches in GitHub

One button click away

Joel Clermont
Joel Clermont

I started the week sharing an awesome tip from Aaron's blog, and I'm going to finish the week the same way.

We generally have two long-running branches in our projects: develop which gets deployed to a staging environment, and main which gets deployed to production.

The flow is that pull requests are always merged into develop and then we later merge develop to main when we're ready to release to the world.

This is very awkward to do with the normal pull request process, so I'd typically pull it down to my machine, do a simple merge to main then push.

But Aaron has found and documented a better way using a relatively simple GitHub Action and he explains it step by step. Such a smart guy!

Here to help,


P.S. Since I'm hyping Aaron so much already, check out his Securing Laravel course.

Toss a coin in the jar if you found this helpful.
Want a tip like this in your inbox every weekday? Sign up below 👇🏼

Level up your Laravel skills!

Each 2-minute email has real-world advice you can use.