A script to automatically push to Github, then deploy to Netlify.
rm -rf public
git add public
git commit -m ‘First commit’
git remote add origin https://github.com/github_username/repo_name.git
git fetch origin master
git push -f origin master
There are single quotes around ‘First commit’ Use double quotes only if you are using Windows.
-f after push means force. Use with caution.