Edward Tsang "Ed" Luis a U.S. physicist and a former NASA astronaut. He is a veteran of two Space Shuttle missions and an extended stay aboard the International Space Station... (wikipedia)
If an asteroid is found to be at an impact trajectory with Earth you will have many decades of notice. And it turns out that you only need to change its velocity by a very small amount in order to prevent a collision.
Picture an ant walking. That is about the change of speed we would need.
Asteroids may be different from one another. If you find an asteroid on a collision course, you may not know what that particular one looks like.
The beauty of this idea is that it's incredibly simple.