A man who allegedly rammed a police car south of Bendigo and threw a knife from his car has been charged by police.