You can use a combination of auto-save-visited-mode (this will save to the actual file, rather than a backup) and gitwatch to auto commit all changes. It should prevent most forms data loss or desynchronization.