Sample Header Ad - 728x90

How to keep a local directory automatically synced with a remote, without latency issues?

6 votes
4 answers
9407 views
I develop a git-tracked codebase that has a lot of files. This code must be run on a remote machine. So every time I make a change locally, I must then sync it to the remote and run the new code on the remote. I want to eliminate the manual sync step. Things I've tried: * Simply doing git push (locally) and git pull (remotely) works but leads to many useless commits. Also, sometimes I am only trying small changes and I don't want those to be committed. * Mounting the remote dir locally with sshfs works, but there is a slight latency in file access. I don't mind, but PyCharm relies on it and many features break. Is there a better way to accomplish this?
Asked by Donentolon (375 rep)
Nov 20, 2019, 06:43 PM
Last activity: Apr 12, 2025, 12:47 PM