db_query("DELETE FROM {variable} WHERE name LIKE '%s%%'", 'git_filter');

This approach always bites. Please use explicit deletion. Somebody might have a git_filter_helper and you'll delete all their variables.