I either wash my hair when I get home from work in the morning and then blow-dry it before bed (clean, dry hair is less likely to go all wonky under the helmet) or just pull it back in a ponytail. Either way, I bring a brush and a few extra ponytail holders with me.
When all else fails, pull hair up in a bun.