Black Friday: the Laravel testing course is $149 instead of $249, through Dec 7. See the course →
logo

An easy way to merge long-running branches in GitHub

One button click away

Joel Clermont
Joel Clermont
2024-05-10

From our daily Laravel tips email. Get the next one in your inbox.

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,

Joel

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

Want a tip like this in your inbox every weekday?

Each one takes less than 2 minutes to read. Join 4,000+ Laravel developers who already get them.

email
No spam. Only real-world advice.
Toss a coin in the jar if you found this helpful.