Make new directory for our git repo. The following will be done on your remote server (Production).

# Makes a directory for us to leave the latest HTML files generated by Hugo in /home/projectname/git/web-compiled

`` And lets copy and paste the following inside our post-recieve

The code form above makes a directory for us to leave the latest HTML files generated by Hugo in /home/projectname/git/web-compiled

The following applies to your local server (e.g. Development), we are adding our remote source that references our production server and repo that we setup previously. Replace username with your ssh user and yoursite.com with your server address.

git remote add production ssh://username@yoursite.com/home/projectname/git/projectname.git