I’m trying deploy my Hugo site using the instructions here:
I developed the site on one PC and uploaded the files to github so that I could pull them down on another PC and continue working on them. Now I wish to publish the site.
I have tried to issue the following command:
git submodule add -b master email@example.com:<USERNAME>/<USERNAME>.github.io.git public
By substituting my relevant info:
git submodule add -b master firstname.lastname@example.org:canstream/canstream.github.io.git public
But I get the following error:
Cloning into '/home/user/mysite/2019-conference/public'... email@example.com: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. fatal: clone of 'firstname.lastname@example.org:canstream/canstream.github.io.git' into submodule path '/home/user/mysite/2019-conference/public' failed
For information, I have no ‘public’ folder - when I ran
hugo it created a sub-directory as follows:
canstream.github.io which contains files (html, css, js etc) for the website.
My directory structure looks a little like this:
archetypes canstream.github.io CNAME config.toml config.toml.ORIGINAL content README.md resources themes
Should I run the following command:
git submodule add -b master email@example.com:canstream/canstream.github.io.git canstream.github.io
Many thanks in advance.