I try and wear gloves when working in the garage or garden. Some jobs just can't be done with gloves and they are often the ones that leave soil and oil under my nails.
I find a nail brush is the best option - and this is a brute of one. Highly effective but don't use it too vigorously!
It has multiple short, stiff bristles - all mounted on a strong and easy to hold wooden handle.
Certainly gets things clean.
It's stamped as a Gardener's Nail Brush ..... but cleans up equally well when I've been working in the garage.