Aversion therephy did it with our cat. Buy a small water pistol and each time he goes to raise a tail near your bike give him a quick squirt with the water pistol - it's important he doesn't see you doing it

Cats hate getting wet and very quickly relate spraying with getting wet and they tend to stop - clever creatures

If nothing else it's very satisfying .....