If it's a front derailleur cable there's nothing to worry about, as it'll simply drop you into the small chainring and you can ride home in a tiny gear. You'll be able to climb fine and spinning out downhill won't matter really.
If it's the rear derailleur cable, like above has said try jamming something from the roadside into the rear derailleur to "push" it into a good gear, or pull the cable tight so it "holds" in a middle gear then tie it off to the frame ir a mounting bolt or whatever is in reach of the cable. Not pretty, but it'll get you home. Worst case scenario is that you're stuck in the small front / small rear combination. You'll likely still be able to pedal yourself home.
It's not a huge concern though. Times I've had a cable snap in tens of thousands of miles: 2
(both could have been prevented with a little more maintenance)
Originally Posted by
wolfchild
My bikes don`t have shifters, I ride singlespeed.
Helpful... 🙄 🙄 🙄