Here is a way you can make one row stripes without cutting the yarn all the time. You have to use a circular needle. I'm working with brown and blue. I made like some ribbing in the brown to get started. When I'm ready, knit a row in the blue, then slide the stitches back to the other end of the needle where the brown yarn was left and knit a row with the brown. Now both colors are at the same end again. Purl a row back with the blue. Then slide the stitches back to the end where the brown is and purl a row of brown. Keep doing this knitting a row with each color and purling a row with each color, two rows of knit then two rows of purl.
This might be a problem when you need to do shapings, but it works well. It could work for a scarf too.