You need to be firm and use the same command to discipline every time (it's a firm NO in our home). Once he stops the up appealing behavior (biting in this instance) immediately reward. I know it sounds redundant and vague but GSDs are brilliant and learn so much by constant repetition and patience.
My opinions are my own based on 20+ years experience and the voices in my head
Be responsible, spay and neuter your pets.