My hair isn't as long as some here but it's slowly getting there (I rocked a high-and-tight from 1997 up until the start of the pandemic). I brush my hair in the morning and I just go with the messed up hair if I happen to put on a beanie at some point. I do now keep a brush in my desk at work in case I need to knock things down a bit after I return from lunch or whatever, but that's about it.
My hair is longer as well and gets demolished by any hat. I think I only own one stocking hat/beanie for use in terrible conditions only. I would never wear one on a day I go to work.