Benjamin Looi
Back to blogs
How to upgrade Gatsby starter blog (or any other gatsby starter template)

How to upgrade Gatsby starter blog (or any other gatsby starter template)

Benjamin Looi / April 26, 2021

Use good git hygiene and create a new branch to merge the upstream so you can test for breaking changes: git checkout -b upstarter
Add the remote to upstream: git remote add upstream git@github.com:gatsbyjs/gatsby-starter-blog.git
Fetch the upstream: git fetch upstream
Then when you merge it use the --allow-unrelated-histories argument: git merge upstream/master --allow-unrelated-histories

You'll most likely have conflicts to resolve, but after that you can merge it back into master:

git checkout master
git merge upstarter
Thanks for reading! 😁

Comments

Related Posts

Related Projects

web
Open Resume

Open Resume

A resume builder with AI coaching, server-side rendering, local state persistence, and Cloudflare Workers deployment.

react
typescript
tailwind
zustand
web
The Eco Garden Cat Project

The Eco Garden Cat Project

A bilingual cat welfare platform for a real colony in Cambodia, with TNVR tracking, KHQR donations, public ledgers, adoption inquiries, volunteer sign-ups, and an admin CMS.

next.js
typescript
tailwind
supabase