Here's a handy tip!
Drag your fingernails through a bar of soap before you start your work in the garden!
The soap will "cake" under your nails! This should help the dirt from accumulating under them!!
Of course, there's always gloves, but I love the feel of working in the dirt!!