You can try to learn everything you need up front. You can set aside years to study and learn, and develop a bank of knowledge that can equip you for whatever eventuality arises.
You can try to learn everything just in case.
Or you can learn as you go.
Look what your next step is. What do you need to know to do it? Learn that stuff.
Then look at the step after that. And learn some more stuff.
You can learn the things you need just in time.
How do you learn – ‘just in case’ or ‘just in time’?