The original sense of the word is 'of the nature of or resembling grit; containing, consisting of, or full of grit; sandy'. However, the word does have a figurative sense meaning something like brave and resolute. Someone who's gritty just doesn't wash away; they're made of sterner stuff than mere flesh. This sense is recorded in the Oxford English Dictionary. The first quotation is from 1