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:
cdto the root of your projectecho public/ >> .gitignoregit checkout -b sourcecd public(if theres no public directory, runhugo)git initgit remote add origin <location of your hugo project>
Run hugo-deploy in the root of your Hugo project.