Hacker News new | ask | show | jobs
by miller_joe 1020 days ago
I've been experimenting with working in a gcp VM for a few months and like it quite a bit. Between ssh+tmux+nvim and vscode-remote I have a remote and local dev exp that is basically identical.

Syncthing is my key to keeping my ~/git tree in sync between the two environments. Just have to be careful not to try to flip back and forth quickly between local/remote as syncthing delays can be ~10s.

4 comments

I always had trouble when using Syncthing for .git folders: they usually end up corrupted / messed up if I push on both the local and remote .git folders.
Mutagen is great for syncing. It’s very fast and painless to setup.
> Syncthing is my key to keeping my ~/git tree in sync between the two environments.

Why don't you use git directly for that?

I assume to avoid commit spam.
Judicious use of git rebase fixes the commit spam issue.
I wonder how well would this work for things like node_modules?