title: How can I synchronize my code to a remote machine using ssh?
body: <p>For a current course I am taking, we are using a remote computer to run our code. </p>
  
  <p>I am coding locally on my MacBook and I'm looking for a good way to keep my local code up to date on the cluster.  </p>
  
  <p>The way I was doing it was to have a terminal open for running SCP to copy the directory, and another terminal that was SSH-ed into the cluster for making and running my code.  </p>
  
  <p>This seems less than optimal for me.  Is there a way that I could automate the sending of the files to the cluster when they are modified?</p>
  
  <p>Or am I stuck with the one-line command to move everything?</p>