Unwind the broken strands to get them out of the way, and straighten the cable with pliers.
Make sure that it's shifted into highest gear position, and push straight in on the cable with pliers.
The other ends of the broken strands are probably making it difficult.
Common problem and why many replace shift cables once a year.