Wit is the ability to think quickly characterized by mental cleverness especially during short time constraint. It also means intelligence and common sense.
"The idea is one of wit."
Whit is the smallest part or particle imaginable like a bit, iota, jot or scrap of a piece.
"You don't have a whit of common sense!"