Thankfully in my short 6 months of riding, I've never been hit (or come close to being hit) by a car or any other vehicle. However I only ride on a small 1 lane neighborhood road with almost no traffic. I use proper gear (lights, helmet, gloves, rear view mirror, long sleeved clothes, inspecting brakes and other parts of MB after each ride) and take proper road precautions (ride on right side of road when cars are approaching, slowing down whenever a car is turning into the road even if I have the right of way, allowing cars to pass easily, etc.). Two things I've found are the most important are a rear view mirror and motorcycle/car horn. A rear view mirror is extremely useful so you can look behind you without taking your eyes off the road, and you know the position/speed of all cars behind you so you can allow them to pass safely. A scooter or car horn is required to get the attention of distracted drivers, of which there are sadly far too many nowadays...
Incidents I've had so far:
1. Almost got ran off the road by a damn GMC pickup truck. A classic case of distracted driving. I was riding up a hill when a huge GMC pickup truck starts coming downhill. Naturally I stop, move to the side of the road and allow him to pass. Well this idiot keeps going down full speed without noticing me and nearly sideswipes me, I had to move the bike all the way off the road in the nick of time! He had plenty of space to move to the right side of the road to pass me safely but I guess he didn't notice me (probably too busy texting on phone). Got mad so I followed him all the way to his construction site down the road, told him he could have ran me over if I didn't go off the road. He apologized later and said it was his fault, wouldn't do it again.