main
- contains human readable codeproduction
- contains the build files for GitHub Pages to host
- Make the necessary changes and push to
main
- Run
npm run deploy
to push the changes to production.
If while running the npm run deploy
command you face an issue:
fatal: a branch named 'production' already exists
- First try to delete the
production
branch locally. If still error exists, then do for remote. - If the issue still exists, delete the
node_modules/.cache/gh-pages
[ref]. - Make sure the branch
production
is the one being used to build the GH-Pages in the settings section.