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 upstarterThanks for reading! 😁