Safe and simple one-script git synchronization