May you are confusing about which color cable on the stepper motor should be connected to which port on the driver (A+,A-, B+,B-), Here is a guide of it
1. Ourstepper motorhas two phase. So it doesn't matter you change the connection order between phase A and phase B. Which I mean Black and Green could be connected to A orB, Red and Blue could be connected to B or A. And yes, it would change the motor direction.
A-:Green or A-: Black Both of the connection type are OK.
3, There is only one rule you need to follow, which is you can't mix them together.
For example, this kind of connection type is wrong, it would make damage to the motor.