Working with git and RecipeMaster <br/>
<br/>
Login to server with ssh (see below)<br/>
Navigate to plugins folder - cd www/staging9.jamesb514.sg-host.com/public_html/wp-content/plugins<br/>
rm -r recipe-master (to clear out any copy of recipe-master currently in the folder)
git init<br/>
git remote add origin git@github.com:zcesl53/RecipeMaster.git<br/>
git fetch<br/>
git checkout origin/trunk -t -b BRANCHNAME<br/>
where BRANCHNAME should be of the form STAGINGNAME.SERVERNAME (eg staging10.jamesb608)<br/>
Note there could be issues where staging names are reused, so you may need to check if a branch already exists with this name</br>
Files missing? Navigate to path and then git checkout origin/trunk . </br>
<br/>
perform development<br/>
when ready to commit<br/>
git commit -a -m "COMMIT MESSAGE"<br/>
Note that if new files are being added you will need to run<br/>
nnnn<br/>
<br/>
to sync to github<br/>
git push origin HEAD<br/>
<br/>
to merge branch to trunk<br/>
nnnn<br/>
<br/>
To setup ssh and connect siteground to github<br/>
https://www.siteground.co.uk/tutorials/ssh/enable-ssh/<br/>
https://www.siteground.co.uk/tutorials/ssh/putty/<br/>
https://www.siteground.co.uk/tutorials/sg-git/clone-github/<br/>
Run Pageant and import private key before running putty
