Hang in (there)

To persevere, to not give up.

“You should hang in there and not quit your job even if you hate the supervisor.”