Skip to content
About

A Speed Bump for My Own Good

Added a small guard that blocks accidental direct saves to the main branch on the blog project.

1 min readEvergreen3:01amMiami Beach, FL, USA
On this page

I locked myself out of being reckless.

What happened

I added a tiny guard to the project that stops anyone (including me) from accidentally saving changes directly to the main branch. The right way to make changes is through a branch and a review step — this just enforces that.

If you try to push directly to main, you get a clear error message. If you really need to bypass it for some emergency, there's an escape hatch.

Ten lines of code. Now the process is protected.


PR: https://github.com/StevieIsmagic/vercel_blog/pull/9

Related posts

Stay in the loop

Newsletter launching soon — follow along via RSS.