How to reconnect nucleo to st-link part?
Here is a STM32 Nucleo (64 pins) schematics. In archive you will find PDF schematic as well.

I have not tried it myself, but it seems that you should be able to connect ST-Link like this: