0735 | Publish Hugo Website on Github


green git github hugo publish GeekLaunch youtube shortcode

GeekLaunch has a Youtube Hugo playlist (7 videos)

Youtube | GeekLaunch | How to make a website and put it online 2017 Tutorial (Hugo, Linux)

Github

youtube shortcode

Web: Sign into github account

Web: Create new repository and copy the address for the git remote add origin

Terminal: navigate to green websites/hugo-harrycresswell

This is where some Hugo testing is in progress.

Terminal: git commands

git init
git remote add origin https://github.com/dormouseroared/hugo-dm1.git
git status
git add --all
git commit -m "Initial commit"
git push -u origin master

git push (can be used thereafter)

The initial response on a new computer when attempting to push might be the need to enter these commands: 1

git config --global user.email "github email"
git config --global user.name "github name"
git config --global core.editor "nano"
git config --global pager.branch false (git branch now displays inline rather than edit mode)

Stackoverflow: how to display output of git branch on screen

Web: refresh github page to see updated repository

Web: click Settings on right hand end of commands, scroll down to Github Pages

Other points


  1. Note: the editor was added afterwards for Green only and is still to be tested, but should be better than vim. ↩︎

See Also

Breadcrumb