The IDF notified civilians through radio broadcasts and phone calls, dropping of leaflets and specific warnings before attacks.
These warnings included sufficient information for civilians allowing them to evacuate to safe areas, as many of them did.
Extended Answer