Deploy remote Git Repo
## - Set remote paths that we will be working with
#!/bin/sh
git --work-tree=/home/accountname/public_html/wp-content/themes/themename --git-dir=/home/accountname/repos/site.git checkout -f
## control - d to save and close
## - Then we need to set the permissions correctly
chmod +x post-receive
## - Navigate to the repo Hooks folder to setup remote paths
cd hooks
cat > post-receive
## - Create the repo on the server
mkdir repo && cd repo
mkdir site.git && cd site.git
git init --bare