For a current course I am taking, we are using a remote computer to run our code.

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.

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.

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?

Or am I stuck with the one-line command to move everything?

Edit
Report