They get text messages, leaflets, recorded phone calls and 'roof knocks' warning them to stay away from the military equipment Israel are targeting.
But sadly, as Gaza is extremely populated, they sometimes don't have anywhere to go...
True, this is really grim situation for Gaza people. Even then calling/texting residents to warn about attacks is awesome move of Israel, very underrated in media though.