Run: go get github.com/danielbarbarito/hugo-deploy
Your source code for your Hugo project should all be pushed to the source
branch. The "public" folder will be pushed to the master
branch.
To achieve this, do the following:
cd
to the root of your projectecho public/ >> .gitignore
git checkout -b source
cd public
(if theres no public directory, runhugo
)git init
git remote add origin <location of your hugo project>
Run hugo-deploy
in the root of your Hugo project.