How to Get Rid of House Flies with Cloves: Take a sweet, ripe apple, randomly poke 20-30 cloves in the the apple, place on a plate and good bye flies. Apparently they hate the subtle smell of the cloves :)
To keep flies away - Fill a zip lock bag with water and 5 or 6 pennies and hang it in the problem area - apparently, it keeps flies and wasps away. Some say that wasps and flies mistake the bag for some other insect nest and are threatened.
Landscape with fly-repelling plants. Flies are deterred by the scents of some plants, so keep potted plants on your patio or near your doors that repel flies: False indigo Mint Lavender Elderberry Basil