To "stick to" something means to continue to do it, even if it's difficult.
You can "stick to" a diet, of course. Other things that people try to "stick to" include:
- stick to a plan
- stick to your promise
- stick to the script (this means to follow the plan that was discussed at the beginning of a project)