3 ms·
Yeah been trying to work that one out for years. I've read of other HN'ers doing this successfully (syncing git repos between machines) but I just seem to get
by tailspin2019 5y ago
Yeah been trying to work that one out for years.
I've read of other HN'ers doing this successfully (syncing git repos between machines) but I just seem to get a lot of issues - git repos often broken temporarily, conflicts etc.
- torarnv 5y agoDon't know how Syncthing works, of it it would even work, but what if Syncthing would detect that it recurses into a .git folder, and then use git push to push all refs to the remote .git repo? That should give a transparent "sync" of the entire git repo and workdir for the user, but via the safety of git's own sync mechanism.