If its a plastic pot- you'll have to sacrifice it and cut down the
side. When you replant you can re orientate the new cane. If its in a
nice pot that you treasure, maybe wait until the cane develops some
roots then try to 'amputate' the cane.
If that plant is in a clay pot you could try flushing the old potting
mix out with a hose (if you're allowed to use one!) This might loosen
the plant in the container and you may be able to gently feed the new
cane out. Good luck!
Jon