We flew into San Francisco, and then took Amtrak from SF to Yosemite. One Amtrak ticket gets you on a bus from SF to Emeryville, a train from Emeryville to Modesto, and from there a bus to Yosemite. We had to go to Modesto due to the rockslide. Merced might be the more direct route next summer if the road is repaired.
After our hike, we got a ride into Lone Pine and spent the night. We took the CREST bus to Bishop and then another bus to Mammoth. The next morning, we caught the YARTS bus back to Yosemite and caught the Amtrak bus/train/bus back to San Francisco. It wasn’t as complicated as it sounds, and we enjoyed wandering around Lone Pine, Bishop, and Mammoth. We were lucky with our timing. I think the Lone Pine to Bishop bus only runs a few days a week, so definitely check on that.
Susan