You're never completely prepared for a breakdown on the trails, but if put a little work into it, you can be more prepared. Practice these common tasks and you'll find yourself riding with a bit more confidence than you did before!
This video doesn't really teach you anything, but maybe it'll get you into it.