Confused about the serial pins of Mega2560 w/74HC595

Hello everyone.
I’m a bit confused about how to use my Arduino MEGA with a 74HC595 shift register.
I have been on the shift out tutorial but they use a Arduino Uno.

I am then wondering what is the equivalent pinout of this tutorial for the Arduino Mega.
The 74HC595 needs 3 wires: serial clock, latch pin, data in.
Latch is any digital pin right? data in could be TX0(pin1) but what about this clock line?

I am looking forward to have your feedback.
many thanks

You can use any three pins, take your choice.

However it's best to avoid the hardware serial pins (0 and 1) as they are used to program the chip.


Thanks a lot.
I will have a try this evening.