Sorry to make this post so long, but I figured it was best to explain everything as clearly as I could.
I have a GitHub Pages website that my domain points to. I’m rebuilding the site using a different theme. I have a plan (below) for how to replace the current site with the new site, and I’d like to know if it’s a reasonable plan.
My current site uses the Basically Basic theme. I downloaded the theme code to my Mac. Now it’s attached to my .githib.io repository, and I’ve been updating it with GitHub Desktop, with no issues. And as I mentioned, my domain points to it.
I’ve just started to rebuild the site using Minimal Mistakes. I downloaded the source for Minimal Mistakes to a new folder, and I’m working on the site locally. I just started - I’m not even done with _config.yml yet. And the folder isn’t associated with a GitHub repository yet.
I’m thinking I can change to the new version of the site like this:
- Delete everything in the current local folder except the .git folder.
- Copy over the files and folders from the new site folder (excluding .git, if there is one, which there probably won’t be).
- Commit all the changes locally.
- Push the changes up to my .gitgub.io repository.
- Will this work?
- I imagine that my domain will still point to the new site, since it’s in the same repository as the old one, right?
- Is there a better way to do this? Since I’ve just started working on the new version of the site, I could change tactics if there’s a better way.