I have a Git repository hosted on our company's servers. With a laptop connected to the company's network I do have access to those servers, but they are inaccessible from other locations, including the EC2 instance I'm using for some numerical computations.
This presumably means I can't keep a versioned copy of my code on the EC2 instance, and that whenever I change something in my code and then wish to execute it I have to scp
it to the instance.
A possible solution is the use of hooks, but that will only give the EC2 instance a copy of the latest commit, on whatever branch that is, and nothing else. Furthermore, it can easily produce scenarios where the code gets out of sync.
Is there any safer/smarter way to manage code in this setting?