What is meant by the saying “break a leg”?

“Break a leg” is a way to wish someone good luck, especially before a performance.