Dear All,
I am trying to deploy the example of Hugo blog
https://gohugo.io/tutorials/github-pages-blog/
on github pages. However, I have some difficulties. In the section
Configure git Workflow
, when I issue the command
git add .
all the files and directories are added to the commit and not only the
README.md
file. Therefore, when I issue
git push origin gh-pages
all the files and directories are pushed to the gh-pages branch. I do not think this is wanted right? We want only the
README.md
file to be pushed to the gh-pages branch.
Am I correct?
Thanks
I am following literally the instructions and they do not seem to work. After I issue
git subtree add --prefix=public
[email protected]
:mparsani/hugo_gh_blog.git gh-pages --squash
I get
Working tree has modifications. Cannot add.
Any idea if these instruction are not updated?
I just ran into that same issue. I ended up blowing my repo away, deleting my .git directory and starting over. I found much more success using this instruction set, although it is for your main user account on github, not project pages.
http://blog.mantziaris.eu/blog/2015/11/07/setup-a-blog-with-hugo-and-github-pages/