How to connect this stepper motor pin?

The Green wires are going to be Voltage supply and then the other four are the four seperate coils.