Avert means to prevent or ward off something.
- Moderate exercise and diet can sometimes help avert weight gain.
Avoid is to shun or stay clear of something.
- Tom tries to avoid the tough questions at a press conference.
Divert is to turn aside, distract, or turn from one course to another.
- I can divert an incoming call to a cell phone with that feature.