This
video shows you the opposite transition, from stockinette to garter but maybe you can play around with the method to work the garter to stockinette (and you'll need to do both I think for your scarf). The other method to consider is 3 needle bind off. It creates a seam but not a very obvious one.