Peter repented and denied he knew Jesus, he did not deny he was the Christ.
It is the same thing. And yes repentence is the key.