Changing Colors

I’ve begun knitting a sweater for myself with a stripe pattern. Is there a better or best way to add a new color at the beginning of the row? In some instances I only knit a color for one row.

If you knit a color for 2 rows, you can just carry the other color up the side, but for one or 3 rows, you’d need to cut the yarn and weave in the ends later.