television

Television Station GTV9 Melbourne Australia

A collection of images, stories and memories.

Home 1956_1969 1970_1979 Reunions Stories Contact

A script to automatically push to Github, then deploy to Netlify.

cd /

cd your_directory

rm -rf public

hugo

git init

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

Notes:

  1. There are single quotes around ‘First commit’ Use double quotes only if you are using Windows.

  2. -f after push means force. Use with caution.

Simple deploy script - Hugo, Netlify

A script to automatically push to Github, then deploy to Netlify.

cd /

cd your_directory

rm -rf public

hugo

git init

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

Notes:

  1. There are single quotes around ‘First commit’ Use double quotes only if you are using Windows.

  2. -f after push means force. Use with caution.