4 ms·
Curious why you want a structure aware way? My current setup (syncing between home and work laptops) is to auto-save files every few second in emacs, and "git
by vtail 8y ago
Curious why you want a structure aware way?
My current setup (syncing between home and work laptops) is to auto-save files every few second in emacs, and "git pull; git commit -am `date`; git push" every few minutes in a cron. Works like a charm.
edit: I also do "git add * .org; git add * .org_archive" inside the org folder before the commit, in the same cron job.
- nine_k 8y agoStructure-aware: if one change sets a TODO item to WIP, and another to DONE, a structure-aware merge algorithm could resolve this conflict, e.g. based on time; plain git needs human attention. Well, yes, immediate sync should work, all merges would be fast-forward except for a vanishingly rare case of two conflicting simultaneous pushes. It's not very practical if one of the devices is mobile, so it's not always online, and parallel changes may build up sometimes.
- vtail 8y agoThat makes sense. I realize in my use case, even if I have one device offline, e.g., working on a laptop on a flight, in most times I will be able to sync before I switch to another device, so it rarely creates a problem.