Specifically, he wants them to promise:
* Not to reveal the Ghost's appearance and message to anyone.
* To keep his own strange behavior a secret.
Hamlet is concerned about the impact revealing the Ghost's existence might have on the court and fears that his own actions might be perceived as madness, even if they are driven by a desire for revenge.
This oath of secrecy creates a sense of tension and mystery as the play unfolds.