there are several ways to do it, but if you have managed to knit the garters , you will find it very easy here is a video which should help
cast off tutorial