There are really good conntections between Manresa and Girona/Barcelona with many different options
Returning to Girona by train takes longer than the bus, but there are more connections. First you can go to Barcelona and then on to Girona
Línea R4 Barcelona Sants- Manresa-Lleida
Línea R11 Barcelona Sants- Girona-Figueres