Question on Pitcher/Catcher sign (Shake one, shake two)


In pro baseball, when pitchers and catchers decide about the sign, they say shake one or shake two. It seems like that’s means which sign is THE sign after the pitcher shakes but how exactly does it work? I don’t really get it. Thank you.