The Israeli military routinely warns the civilians Hamas hides behind of impending attacks. See below.
Recent leaflet dropped to the residents of Gaza by the IDF:
To the residents of Sheikh Ijleen, Tal al Hawa, Remal al-Janoub, Zeitoun neighbourhood, Shoujaiyat al-Tourkman, Shoujaiyat al-Jadida:
The Israeli military is not targeting any of you and does not want to hurt you or members of your family.
For your own safety, you are requested to evacuate your houses right away and to move towards Gaza city through Cairo Road, Arab League Road, al-Aqsa Road, al-Qadisiya Road, Em el Leymoun, Salaheddine, al-Mansoura, Khalas, Baghdad.
The deployment in Gaza city is limited in the west of Salah al-Din Road, north of Omar al Moukhtar Road, East of Nasr Road, and south of al-Qods Road.
This confrontation is temporary and once it ends everyone will go home.
Obeying the orders of the Israeli military will result in you, civilian residents, not being hurt.