I just matched blue to blue on the stepper and the wiring harness. Then just plugged them into the Ramps board. If they were going the wrong way you simply flip it at the ramps board. Once I saw that in the instructions I realized you can’t really screw up the connection.
This is assuming you are using the electronics from here and not making your own wiring harness.