"ni de tou" means your head, "ni ge tou" is a colloquial expression which has a negative or opposite meaning.
For instance, "hao ni ge tou" actually suggests "bu hao".
What's more, the term "ni ge tou" is often used by people who are familiar with each other, friends, couples, parents and children, etc.