My code repo is in a bare directory on a local workstation. I want to PULL from this repo from my production server while I am logged in to my production server via SSH.
Production server => PULL from local workstation repo
How would I do this?
There are Five Ways to set up a repository to PULL from. Seems SSH & Git protocols are my only options but I am stuck. I can connect to the production server from my local workstation via SSH but how do I do the opposite?
EDIT: Simply, how do I add the local workstation as a remote repo on the production server?
ANSWER Just for anyone else that may have a similar question. You can follow the accepted answer below. OR you can change the initial set up. Change the repository from a local repository to a remote private repository in the cloud. It makes it much easier as only SSH is needed.