On the common SRAM MRX shifters found on cheaper bikes you peel back the rubber covering near the shifter body to expose the groove the cable sits in and feed the cable back out. Zinn's MTB book has illustrated instructions. Some of fancier twist grip shifters have some sort of cover you remove instead.