Some of you will be familiar with the traditional British kids' variant which starts with the same line.
While shepherds washed their socks by night
To get them clean and nice
The bloke from the laundrette dropped by
And gave them this advice:
Rinse no! He said
For there's a red
Sock in with all the white
Your laundry is now pink throughout
Due to this oversight.